Support » Plugin: Yoast SEO » How To Manually Remove WordPress SEO on Template Page

  • I’m running a Real Estate website with IDX Broker Platinum and WordPress SEO. I had to create a dynamic wrapper template that IDX Broker wraps the listings with. That means that the Wrapper pulls all of the SEO data from the template page for each real estate listing.

    This causes big issues, as I don’t want to include the wrapper in my site map or have search engines index it. If I set the wrapper to no follow, then all of my real estate listings are set to no follow as well. When I post a listing to Facebook, the open graph data doesn’t pull the meta from the listing, but instead what Yoast SEO embeds for the wrapper page on my site.

    Basically, I need to know how to disable Yoast SEO on a particular page template. Anyone know how to do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • That would be awesome! Did you figure this out? I need help too!

    Adding the below code to header-diff.php should have removed canonical from my custom pages. But it didn’t.. Any help?

    <?php add_filter( $wpseo_canonical, __return_false ); ?>


    Any help Yoast, Joost de Valk

    Here’s how to remove canonical for custom pages!

    <?php add_filter( 'wpseo_canonical', '__return_false' ); ?>


    Hey there Kutu, just now got back around to checking out this thread. Does that option still work for you?

    I just went to test it for fun with no such luck. Also tried…

    function wpseo_canonical_exclude( $canonical ) {
    global $post;
    if ( $post->ID == 4350) {
    $canonical = false;
    return $canonical;
    add_filter( ‘wpseo_canonical’, ‘wpseo_canonical_exclude’ )

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How To Manually Remove WordPress SEO on Template Page’ is closed to new replies.