Custom Field Before Content
-
I’m attempting to load videos from a custom field before the content and having no luck. Here is the code I’m using:
function add_post_meta_content($content) { $meta = get_post_meta( get_the_ID(), 'csco_post_embed', true ); return .$meta.$content; } add_filter('apple_news_exporter_content_pre', add_post_meta_content); apply_filters( 'apple_news_exporter_content_pre', $post->post_content, $post->ID );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom Field Before Content’ is closed to new replies.