Support

Account

Forum Replies Created

  • Ah gotcha, I’m actually doing everything in the back end programmatically, I’m not using ACF on forms in the front end, so that’s probably why I haven’t run into this issue

  • I actually haven’t used flexible content fields yet, so I haven’t run into that issue for now. You’re saying that ACF saves stuff even if you directly store the fields yourself in the database?

  • 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!

  • Wow this is exactly what I was looking for! Thanks so much!

    Yes I tried using get_field_object(‘FIELD NAME’) and run into the problem you mention.

    I was just wondering though, if those field keys appear in the admin when editing a field group, they MUST be somewhere in the database right? Maybe wp_options or wp_postmeta… I’ve dug around a bit without success unfortunately, do you know by any chance where those could be stored?

Viewing 4 posts - 1 through 4 (of 4 total)