• Resolved blackfootgraphics

    (@blackfootgraphics)


    Hello,

    Pintrest has validated my website for rich pins but my pins haven’t changed to show the price, etc and I discovered the meta properties for my products are set to “article” even though on the product page of each product in the Yoast SEO section it knows it’s a product. I’ve checked all of the settings and I have no idea why the og:type is wrong. Any help would be much appreciated!

    From the product page:
    <title>What You Believe You Receive Tshirt | Lightworker Lifestyle</title>
    <meta name=”description” content=”If you know anything about the Law of Attraction you know that your beliefs play a big part in creating your reality. Your deep seated belief system draws to you events, people and situations that provide evidence to support your beliefs. Wear this t-shirt and believe! Sold in sizes for women & men in four colors.”/>
    <link rel=”canonical” href=”https://www.lightworkerlifestyle.com/shop/what-you-believe-you-receive-tshirt/&#8221; />
    <meta property=”og:locale” content=”en_US” />
    <meta property=”og:type” content=”article” />
    <meta property=”og:title” content=”What You Believe You Receive Tshirt | Lightworker Lifestyle” />
    <meta property=”og:description” content=”If you know anything about the Law of Attraction you know that your beliefs play a big part in creating your reality. Your deep seated belief system draws to you events, people and situations that provide evidence to support your beliefs. Wear this t-shirt and believe! Sold in sizes for women & men in four colors.” />
    <meta property=”og:url” content=”https://www.lightworkerlifestyle.com/shop/what-you-believe-you-receive-tshirt/&#8221; />
    <meta property=”og:site_name” content=”Lightworker Lifestyle” />
    <meta property=”article:publisher” content=”https://www.facebook.com/lightworkerlifestyle/&#8221; />

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    You can change the og:type property for your WooCommerce products using the wpseo_opengraph_type filter. You can find an example below which you’ll need to modify based on your needs:

    function yoast_change_opengraph_type( $type ) {
      if ( is_page( 'X' ) )
        return 'video';
    }
    add_filter( 'wpseo_opengraph_type', 'yoast_change_opengraph_type', 10, 1 );
    

    When using the WooCommerce SEO by Yoast plugin, it will automatically change the og:type property article to product for WooCommerce products for you.

    Thread Starter blackfootgraphics

    (@blackfootgraphics)

    That’s why I posted here, the Yoast plugin isn’t doing that. My products are being considered articles, not products. As I said, I checked all of the settings and don’t know what is causing it to do this. It is confounding.

    Plugin Support Michael Ti?a

    (@mikes41720)

    If you have the WooCommerce SEO by Yoast plugin, please feel free to contact us directly at [email protected] so we can provide you with premium email support.

    Otherwise, please feel free to use the wpseo_opengraph_type filter. If you’ve already used the filter and it still doesn’t work as expected, we’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

    Thread Starter blackfootgraphics

    (@blackfootgraphics)

    I’m afraid to use the filter and add/modify any code because I don’t know what I’m doing and don’t want to break anything because otherwise the plugin is fantastic. I’ll purchase the premium so I can receive support instead of turning a small issue into a molehill. ?? Thanks for your replies!

    Plugin Support Michael Ti?a

    (@mikes41720)

    You’re very welcome! If you decide to purchase the Yoast SEO for WordPress Premium plugin, we do want to let you know that we won’t be able to insert the filter into your code per se or help you with custom code, but we can provide support and check if it is working as expected.

    If you decide to purchase the WooCommerce SEO plugin, it should resolve the issue immediately as it switches the og:type property immediately.

    Please be reminded of how you can get support — https://kb.yoast.com/kb/support/

    Setting to resolved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘“Article” Meta Property for Product Page’ is closed to new replies.