meta description, and schema description is not same…

#15117
  • Resolved Anonymous
    Rank Math free

    Hi, the description that we write on meta box (which I’m putting an image for proof) is not shows as rich snippet desciption…

    it needs to be same, but there is no shortcode for that…

    http://prntscr.com/p78goo its the desciption that we write for looking good meta description…
    http://prntscr.com/p78h72 and its takes post except…

    there have to be a way to make it same with shortcode for example %postdescription% or %postmeta%

    please help me for that…
    my schema is really ugly with that.
    http://prntscr.com/p78j6f

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

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

    This is expected behavior, the meta description will only be used on the meta and not the blog posting schema. You will need to copy over the custom description data to the rich snippet tab to fix this.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Anonymous
    Rank Math free

    its not blogposting schema, and its normal to have same description.

    Yoast SEO does the same with your meta… give us an option to do that…

    • This reply was modified 6 years, 4 months ago by .

    Hello,

    Thank you for contacting Rank Math today.

    You can fix this by adding the following code to your theme’s functions.php file:

    /**
     * Filter to add meta description on the Article rich snippet desc
     * Replace $schmea_type with schema name like article, review, etc.
     * @param array $entity Snippet Data
     * @return array
     */
    add_filter( "rank_math/snippet/rich_snippet_article_entity", function( $entity ) {
    	global $post;
    	$meta_description = get_post_meta($post->ID,'rank_math_description',true);
    	if($meta_description){
    		$entity['description'] = $meta_description;
    		return $entity;
    	}
        return $entity;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    Anonymous
    Rank Math free

    Thank you so much, it fixed our problem.

    for the next update it needs to be included as an option 🙂

    and next, please add howto and faq snippet type on classic and gutenberg editor.

    Hello,

    We are super happy that this resolved your issue. I will pass your suggestions to our dev team 🙂

    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/?rate=5#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 ‘meta description, and schema description is not same…’ is closed to new replies.