2

That clearly is a plugin field of "Advanced Custom Fields". The function: the_field(); is one of the utility functions of the plugin. The purpose of "Advanced Custom Fields" is to enable users with less coding-knowledge to add custom fields to a theme/template. So, in order to reverse engineer the whole thing, you propably need to install and ...


1

Here's a fairly complete example of one way to do this. Let's register a Job post type that will be used with our feed. /** * Register Job post type * https://developer.wordpress.org/reference/functions/register_post_type/ */ function wpse_register_job_post() { $book_args = [ 'label' => __( 'Jobs', 'textdomain' ), '...


1

File upload fields might return all those values (depending on the field settings), but those are just based on the media library attachment. The field only actually stores the ID of the attachment for the file as its value. So to populate a File field programatically, you just need to set an attachment ID as the field value. So once you have the attachment ...


1

So thanks to Jacob Peattie and his helpful comments I was able to resolve this issue. meta_key was part of the group, but it wasnt prefixed by a group key. So, something like this totally works for me: group_field_sub_field. So changing that in both arrays did the trick.


Only top voted, non community-wiki answers of a minimum length are eligible