Issue using apply_filters for the_content
-
I am having an issue while using apply_filters in a post. When opening the frontend page builder, it displays the page builder in the wrong section since my apply_filters is at the top of the post page.
Code in question: <?php echo apply_filters(‘the_content’ $example_video); ?>
Since the above code appears before the normal <? the_content(); ?> call, it causes the page builder to render in the wrong spot (at the top).Is there a snippet of code that I can add so the editor skips the apply_filters the_content? Or possibly is there a snippet of code for if the frontend editor is open, to just not render that area. That would work as an alternative.
The reason I don’t add a custom filter to apply_filters is that I’m using locally hosted videos which don’t output when using custom filters.
- The topic ‘Issue using apply_filters for the_content’ is closed to new replies.