add_filter for specific pages
It is helpful to post your entire filter and callback code, rather than just pieces. But, I suspect that the problem is that you’re not returning $the_content outside of your conditional, e.g.: function magicalendar_get_event_page( $content ) { if ( $post->post_name == ‘magicalendarpage’ ) { // Do something to $content return $content; } } add_filter( ‘the_content’, … Read more