Postmeta in Classic Editor

#45635
  • Resolved Quoctrang
    Rank Math free

    Hi team!
    Firstly, thank a lot for the great plugin!
    Second, I would like to ask that in 1 website, I have 2 custom post types: one with Gutenberg and another one with Classic Editor (which can not be changed to Gutenberg).

    In the table postmeta in the database, for each post of the one with Gutenberg, Rank Math creates only 2 rows (rank_math_seo_score, rank_math_focus_keyword), but for the one with Classic Editor, it creates many rows:
    rank_math_seo_score
    rank_math_focus_keyword
    rank_math_twitter_image_overlay
    rank_math_twitter_enable_image_overlay
    rank_math_twitter_card_type
    rank_math_twitter_use_facebook
    rank_math_facebook_image_overlay
    rank_math_facebook_enable_image_overlay
    rank_math_advanced_robots
    rank_math_robots
    rank_math_primary_category
    rank_math_permalink

    I wonder is it necessary to have these rows and is it possible to stop creating them? And why the posts with Gutenberg don’t need them, only the posts with Classic Editor.

    Many thanks!

    • This topic was modified 3 years, 11 months ago by Quoctrang.
Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello,

    Thank you for contacting Rank Math today.

    These fields are necessary for saving custom field data. It is also a bit odd that you don’t see these fields on your database since I’ve just created a new post using Gutenberg and the post meta entries are added as shown below:
    Screenshot

    Please check whether you are searching for the entries under the right post id. Please note that these fields also need to filled for the entries to be added in the database.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hi Michael,

    Thanks for your answer and sorry for my late reply.

    I double-checked everything and the thing is exactly as I wrote. Let me make it more clear:

    1. I have Post (WordPress default) and a custom post type (CPT) name Place (created by GeoDirectory plugin). Both are using the same Rank Math Settings, without Schema set up. The only difference is:
    – Post uses Gutenberg
    – Place uses Classic Editor.

    2. I created 1 new Post and 1 new Place, put only Name and focus keyword for each.

    3. For Post, right after clicking Publish, I check the database to make sure I check the newest, I also check the post ID.
    Rank Math creates only 2 rows:
    rank_math_seo_score
    rank_math_focus_keyword

    4. For the same step as creating a new post, I create new Place and check in the database (by post ID), Rank Math creates much more rows than with Post:
    rank_math_permalink
    rank_math_focus_keyword
    rank_math_seo_score
    rank_math_robots
    rank_math_advanced_robots
    rank_math_facebook_enable_image_overlay
    rank_math_facebook_image_overlay
    rank_math_twitter_use_facebook
    rank_math_twitter_card_type
    rank_math_twitter_enable_image_overlay
    rank_math_twitter_image_overlay

    I really don’t know why this happens.
    If I create a new CPT that using Gutenberg, Rank Math create 2 rows only as of the default Post. So it happens only with Custom Post Types that use Classic Editor.

    5. After testing again to make sure that I didn’t check wrong post IDs, I found another problem:
    With CPTs using Classic Editor, if I turn on Schema function of Rank Math and choose None for Schema Type in Titles & Meta for CPT, Rank Math will create a huge numbers of row in database for one post:
    rank_math_robots
    rank_math_advanced_robots
    rank_math_rich_snippet
    rank_math_snippet_location
    rank_math_snippet_article_type
    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_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_rating_min
    rank_math_snippet_event_rating_max
    rank_math_snippet_jobposting_unpublish
    rank_math_snippet_music_type
    rank_math_snippet_product_instock
    rank_math_snippet_product_rating_min
    rank_math_snippet_product_rating_max
    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_rating_min
    rank_math_snippet_software_rating_max
    rank_math_facebook_enable_image_overlay
    rank_math_facebook_image_overlay
    rank_math_twitter_use_facebook
    rank_math_twitter_card_type
    rank_math_twitter_enable_image_overlay
    rank_math_twitter_image_overlay

    All of these rows for 1 post ID only and again, it doesn’t happen with CPTs that don’t use Classic Editor.

    So I think there is some conflict between Rank Math and CPTs that use Classic Editor.

    Please help!

    Hello,

    Thank you for contacting Rank Math today.

    All these rows are essential for the custom field SEO and Schema data. If you don’t mind me asking, would you mind creating a post(wp default) with classic editor and let us know how it goes.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi,
    Thanks for your reply.
    I followed your text, so I installed Disable Gutenberg plugin to have Classic Editor in Post (WP default) and create some new posts. The situation is still the same, with Gutenberg, Rank Math doesn’t create many rows as with Classic Editor.

    You can check in the admin and database to see:

    1. Post ID 384: With Gutenberg, Disable Schema (Structured Data) of Rank Math.
    3 rows of Rank Math (1 more row because I set category for it)

    2. Post ID 385: With Classic Editor, Disable Schema (Structured Data) of Rank Math.
    12 rows of Rank Math

    3. Post ID 386: With Classic Editor, Enable Schema (Structured Data) of Rank Math, Schema Type: None.
    39 rows of Rank Math

    In the post ID 386, it creates rows to store all Schema Snippet that Rank Math supported, but I set Schema Type to None which means I don’t want Rank Math to manage Schema for this Post type, so it makes no sense to have all of these rows.

    You can access the site to test. This site is for testing only so please feel free to create posts or any other testing as you need.
    Disable Gutenberg plugin and Schema (Structured Data) are disabled.
    a. You can create a new Post and check the database to see the rows.
    b. Enable “Disable Gutenberg” plugin and create a new Post and check database.
    b. Enable Schema (Structured Data) of Rank Math and create a new Post and check database.

    Thanks for your patient.

    Hello,

    Thank you for the follow up.

    Unfortunately I am unable to access your Database panel with the credentials you have provided.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Sorry for my mistake. I just updated the account information. There are 2 steps to access to PhpMyAdmin.

    Hello,

    Thank you for contacting Rank Math today.

    Allow me to consult the dev team on this. Your patience in this is appreciated.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    All of these rows for 1 post ID only and again, it doesn’t happen with CPTs that don’t use Classic Editor.

    So I think there is some conflict between Rank Math and CPTs that use Classic Editor.

    Sorry for the confusion. There is no conflict between Rank Math and CPT’s that uses Classic Editor. What you are referring to is just a way date is stored in Classic Editor & Gutenberg Editor.

    In Gutenberg, data is stored using JavaScript so only the data which is changed is saved. In Classic Editor, however, all the data which exists in the form is saved.

    Before using this data on frontend, Rank Math checks if all the data related to the property exists in the Database so it won’t cause any problem.

    I hope that helps.

    Thanks for your reply Pratik!

    Alberto
    Rank Math business

    Hello,

    I am happy to see this helped you. 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 12 replies - 1 through 12 (of 12 total)

You must be logged in to reply to this ticket.