• The excellent Yoast SEO plugin is adding some unwanted meta tags.

    For example, I would like article:author to appear on posts, but not on pages or other content types.

    Is there a way to adjust this globally?

    I’m happy to edit function.php, but I’m just unsure what I should be hooking in to.

    Grateful for any pointers from those more familiar with the plugin.

Viewing 1 replies (of 1 total)
  • Thread Starter andrewharvey

    (@andrewharvey)

    I suspect this will do the trick, I’m just not sure what should replace xxxx

    function wpseo_show_article_author_only_on_posts() {
      if ( !is_single() ) {
        return false;
      }
    }
    add_filter( 'xxxxx', 'wpseo_show_article_author_only_on_posts' );
Viewing 1 replies (of 1 total)
  • The topic ‘How to disable Yoast SEO adding article:author meta tags to pages’ is closed to new replies.