Applying custom filter instead of the_content doesn’t render embeds
the_content filter is as good as other filters are. The issue is that it is supposed to be run inside a loop with the glogal $post correctly set to current post in the loop. So, you could do something like this (not tested, just written here as example): $content_before_category = get_theme_mod( ‘content_before_category’, false ); if … Read more