Viewing 6 replies - 1 through 6 (of 6 total)
  • Add this to your functions.php

    function my_wpseo_og_article_tag( $content ) {
    	return '';
    }
    add_filter( 'wpseo_og_article_tag', 'my_wpseo_og_article_tag' );
    Thread Starter viruz82

    (@viruz82)

    I always get a white page when I add this code. ??

    The code works fine, it is copy&paste from a working site.

    But I was reading too fast and just saw now that you do not want to remove the meta for tags (which would be “article:tag”) but the author.

    So the code should be like this in your case (untested):

    function my_wpseo_og_article_author( $content ) {
    	return '';
    }
    add_filter( 'wpseo_og_article_author', 'my_wpseo_og_article_author' );

    Thread Starter viruz82

    (@viruz82)

    Hm, I’m confused. When I copy that lines into my fuctions.php I always ge a blank page. Maybe I’m doing something wrong?

    Please take a look here: https://pastebin.com/AL0cQbYL

    Your provided code is on the bottom…

    It’s the wrong file. Add the code to the file functions.php of your theme.

    https://codex.www.ads-software.com/Functions_File_Explained

    Thread Starter viruz82

    (@viruz82)

    Oh, sorry mate. :/

    Now it working just fine. Many thanks! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Hide meta property="article:author"’ is closed to new replies.