Auto Fill Schema Fields for Custom Post Type

#50637
  • Resolved Technosage
    Rank Math free

    I have a custom post type called Job Openings and I have all the fields present in the “Job Posting” Schema Type in my Custom Post Type as well as I have to display that information on my website as well. Is there any way by which the Schema fields can be filled automatically from the custom fields data or vice versa? If not, I will have to add the same information twice, one at CPT fields and then again in Rank Math Schema fields.

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    This should be possible. I can suggest that you write some custom logic to update the Rank Math meta fields using the update_post_meta() function by grabbing the values from the custom fields on your CPT.
    You can call the code within the save_post hook that is fired when a post is published.

    Since each schema type has unique fields, I can suggest that you create a test post, fill all the fields and then search for this post id in the postmeta table of your database to identify all the meta keys used by Rank Math.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Auto Fill Schema Fields for Custom Post Type’ is closed to new replies.