Support » Plugin: Yoast SEO » Rich Snippets for Products

Viewing 7 replies - 1 through 7 (of 7 total)
  • Jesper


    I had this code

    add_filter( 'wpseo_author_link', '__return_false' );

    added to


    But then the author is still removed from all posts. Not only WooCommerce!?




    I got this code from WooThemes to put in functions.php

    add_action( 'init', 'custom_remove_author_woocommerce' );
    function custom_remove_author_woocommerce() {
    global $woocommerce;
    if ( is_page() ) { 
    add_filter( 'wpseo_author_link', '__return_false' );

    But that does not work, because it removed the author of the whole site not only WooCommerce pages.


    Thank you!



    Looking for the same.

    I think I found the right code to put in functions.php:

    function wpseo_disable_page_author_link( $link ) {
        if ( is_product() ) {
            return false;
        return $link;
    add_filter( 'wpseo_author_link', 'wpseo_disable_page_author_link' );

    Same problem but with WP ecommerce. Tried your most recent code in my functions.php and it stripped the authorship from the whole site, not just products. Hmm…

    Hi Jesper. Any update on this?

    I’m struggling with products rich snippets my my woocommerce site. I just get the author image and not the product image.

    What about the publisher tag?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Rich Snippets for Products’ is closed to new replies.