-
Please help me with same.
thanks
-
Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
On which format are you saving the posts? Rank Math stores the data in two different ways depending on the post is saved using the classical editor format or the Gutenberg blocks format.
Looking forward to helping you. Thank you.
Hi Alberto,
Currently saving post as Gutenberg blocks format.
For my function I want to retrieve all rankmath data associated to that post with id, let’s say 1Hello,
Rank Math plugin stores all the data in postmeta table with the key prefixed with rank_math_. Here is a list of all the meta keys.
rank_math_internal_links_processed rank_math_title rank_math_permalink rank_math_description rank_math_focus_keyword rank_math_primary_category rank_math_seo_score rank_math_robots rank_math_advanced_robots rank_math_canonical_url rank_math_breadcrumb_title rank_math_dont_show_seo_score rank_math_rich_snippet rank_math_snippet_location rank_math_snippet_name rank_math_snippet_desc rank_math_snippet_article_type rank_math_snippet_book_rating rank_math_snippet_book_rating_min rank_math_snippet_book_rating_max rank_math_snippet_book_editions rank_math_snippet_course_provider_type rank_math_snippet_course_rating rank_math_snippet_course_rating_min rank_math_snippet_course_rating_max rank_math_snippet_event_type rank_math_snippet_event_attendance_mode rank_math_snippet_event_performer_type rank_math_snippet_event_price rank_math_snippet_event_inventory rank_math_snippet_event_rating rank_math_snippet_event_rating_min rank_math_snippet_event_rating_max rank_math_snippet_jobposting_unpublish rank_math_snippet_music_type rank_math_snippet_product_price rank_math_snippet_product_instock rank_math_snippet_product_rating rank_math_snippet_product_rating_min rank_math_snippet_product_rating_max rank_math_snippet_recipe_rating rank_math_snippet_recipe_rating_min rank_math_snippet_recipe_rating_max rank_math_snippet_recipe_instruction_type rank_math_snippet_review_worst_rating rank_math_snippet_review_best_rating rank_math_snippet_review_location rank_math_snippet_software_price rank_math_snippet_software_rating rank_math_snippet_software_rating_min rank_math_snippet_software_rating_max rank_math_facebook_image_id rank_math_facebook_image rank_math_facebook_title rank_math_facebook_description rank_math_facebook_enable_image_overlay rank_math_facebook_image_overlay rank_math_twitter_use_facebook rank_math_twitter_card_type rank_math_twitter_image_id rank_math_twitter_image rank_math_twitter_title rank_math_twitter_description rank_math_twitter_enable_image_overlay rank_math_twitter_image_overlay
To get the data, you can use
get_post_meta( $post_id, $meta_key, true );
function.I hope that helps.
Thanks Pratik, This will help.
Hello Pavan,
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.
You must be logged in to reply to this ticket.