0
votes

I have created a custom template page using WordPress Template redirect. Now my problem is WP Yoast SEO Plugin is doing page analysis and placing meta tags with page not found values.

I want to disable WP Yoast SEO page analysis on my custom page. I tried to follow the API for this plugin in this link and used the following in my theme's functions.php but no luck

add_filter( 'wpseo_metakey', '__return_false' );
1
What does "no luck" means? Does it work, does it not work? - brasofilo
It does not work...... - Mahesh Budeti
Sorry, I mean does it produce any effect? Of removing all keywords everywhere? - brasofilo
no it has no effect on output I can see all the meta tags related to yoast seo - Mahesh Budeti

1 Answers

1
votes

Try this:

add_filter( 'wpseo_metakeywords', '__return_false');

You can find a good overview here.