Product Description JSON is not showing SEO Description

  • Hi.
    I edited the seo description of my products. When I test it live URL in Google it shows product’s short description as SEO description so everything is duplicated. I am talking about JSON product file. I have tried the php code that your support suggested in FB Group.
    What am I doing wrong?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Gregor,

    I am trying to work on your site but it is taking way too long to load.

    I managed to open this URL:

    /wp-admin/post.php?post=17556&action=edit&lang=en

    I checked its page source in Chrome and then found the SEO description is exactly the same as you set using the Rank Math SEO plugin.

    If it isn’t working on a particular product page, we would love to take a closer look. I just need your product URL for that.

    Thank you.

    Hello,

    I have entered SEO description on any product. When I live test structured data on Google I get:
    null
    I have also entered the “global description” still not showing here.
    How can I manually edit?
    I dont have any window like this in my product edit page:
    null

    Hello,

    Thank you for contacting Rank Math today.

    I’ve modified your code to the following to use the SEO description that you have set on the schema product:

    /**
     * Filter to modify the description for Products.
     *
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( 'rank_math/snippet/rich_snippet_product_entity', function( $entity ) {
    	global $post;
    	$desc = RankMath\Post::get_meta( 'description', $post->ID );
    	if($desc){
        $entity['description'] = RankMath\Helper::replace_vars( $desc, $post );
        return $entity;
    	}
    	return $entity;
    });

    I dont have any window like this in my product edit page:
    This window will only be available when editing a CPT that you want to assign the product schema to. Rank Math picks all the schema data from WooCommerce so that you don’t have to manually enter these values.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thank you so so so so so so so much 😀
    It works as expected.

    Thanks once again.

    Have a nice day.

    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 ‘Product Description JSON is not showing SEO Description’ is closed to new replies.