og:type for woocommerce product group

#648145
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Can you please confirm if this is your product category page? If so, then you can use the following filter on your website to change the og:type property:

    add_filter( "rank_math/opengraph/facebook/og_type", function( $content ) {
        if(is_product_category()){ 
            $content = 'productGroup'; //change here
        }
        return $content;
    });
    

    Here’s how you can add filter/hook to your WordPress site: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    hello @Rakibuzzaman Siam
    thanks for your work!
    i exactly point to this problem.

    i have a question too.
    Can you give me other codes for optimize product category pages?
    i add thats in Code Snippets Plugin.
    thanks.

    Hello,

    You can check all the available filters in the following guide and modify and use them to optimize the meta tags or Schema of the pages: https://rankmath.com/kb/filters-hooks-api-developer/

    Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.

    thanks!

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘og:type for woocommerce product group’ is closed to new replies.