Home Forums General Issues How to get field reference Reply To: How to get field reference

  • Gotcha, with that info about child posts I’ve done some digging and found EXACTLY what I was looking for.

    If I get the post_id of the field group post, and search in the wp_posts table for the posts whose parent_id is that post_id, I get the list of all the posts (fields) for that field group with their field name (post_excerpt) and field key (post_name).

    This will allow me to programmatically get a list of all the fields and their corresponding field key for a specific field group, and use this info to save in the wp_postmeta table all the fields of a post in one call, which is my ultimate goal to speed things up.

    Thanks so much for your help!