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.
Related Posts:
- How do I set the default admin sort order for a custom post type to a custom column?
- Using meta_query, how can i filter by a custom field and order by another one?
- How to order adjacent posts (prev / next) by custom field value?
- Sorting a query by custom field date
- Custom Taxonomy Template Post List with Sort Order
- How to sort a table of custom posts by column containing custom field
- How to sort CPT by custom meta value (date), and return posts month by month
- sort events based on event date custom field
- How to Sort Custom Field Admin Column by Date
- How to Sort by Date When Using d-m-Y Format
- Sort by two dates. Default entry date and custom field if present
- 1 day after custom date change post status to draft
- Custom Post Type Events Archive Grouped By Month
- query_posts with a custom post type, a meta_query and sorting by post date?
- Sorting custom post type columns with external data and without meta values
- Default sort on admin columns with meta date hides draft posts with empty date value
- WP_Query order by custom field, then randomly order some of results
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Meta Query posts not showing on ending date of custom field
- How to display a WordPress Custom Field only on a specific day of the week?
- Make a custom column sortable by a value from a different custom post type
- Empty meta-box returns publishdate if no value is set?
- Problem with date comparison for custom fields
- How can I sort the order of multiple custom field values in a custom post type?
- How to sort WP_Query by a custom text field (written as a date dd/mm/yyyy)
- sorting in wp query based on custom field value
- Query events post type after current date and timezone
- Pre_get_posts comparison with custom field doesn’t work
- Get month and day from a Date Picker custom field
- Loop posts in a table ordered by a custom field value
- How to get past and upcoming post by defining date in custom field?
- How to display custom post type ordered by a custom field date
- Is it possible to specify a time interval (from, to) in ACF with date picker, or other custom field?
- Sort CPT by taxonomy AND THEN by custom field
- How to display *block number* instead *date value* on WordPress posts?
- Custom Post Type Data in Sidebar widgets?
- Hide custom post type field from author?
- echo value from ‘select’ field type into page template using cmb2?
- Number of pages – multiple (custom) post types
- wordpress plugin error handling
- Creating Photo Gallery System with Custom Post Type
- Set post title from two meta fields
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Trying to save custom post type from frontend partially working
- Custom Taxonomy order by Custom Field
- Comparing timestamps in meta query doesn’t work
- Is there any performance consideration when using Custom Post Types?
- Custom Post Type Navigation on Custom Field
- Automatically update custom field in all posts of a custom post type
- Filter custom posts using auto populated dropdown selectors
- Add custom field to Posts and sort by it
- Including metaboxes from custom post types in global search — continued
- Show image gallery from a custom field
- Using advanced custom fields from one custom post type in another custom post type / using nested shortcodes
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Is there any way to add a “custom field” to the CPT archive page?
- don’t publish custom post type post if a meta data field isn’t valid
- WebP Fallback for Inline Background Image in Style Attribute
- WP Group posts by year(desc) > month(desc) > date(asc)
- Check if post with same meta value exists
- Custom posts type for individual pages?
- custom post data – how to
- Editor / Add Media: Is it possible to only allow galleries?
- What do the numbers mean at the end of add_action(‘save_post’)…?
- A meta box (in a custom post type) with two different type of fields
- Should i use a plugin for Event Manager or code my own needs? [closed]
- Custom Field not saving in WordPress
- Reusable metabox backend and frontend
- How to display wp_post by custom field value?
- Get A Custom Field From A Custom Taxonomy Of A Custom Post Type [closed]
- How to import database table as custom post type and custom fields?
- Custom Taxonomy dont save in a frontend form for post a custom post
- How to display posttypes and taxonomy in standard posts, not in a separate label?
- Fill custom fields when saving custom post types
- Sorting custom post types in edit.php : Post disappear
- Should i use custom post type for a custom footer?
- Creating an Events Feed with Sub Pages/Posts for Each Event
- Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [closed]
- Migrate Custom Post Type with Custom Fields data and parent child order
- wp_set_object_terms creates taxonomies but does not add custom posts to it
- Display Custom Field or Custom Taxonomy in front page /post/product
- Sort custom post type by custom datepicker instead of filtering
- How to access repeater field of a custom field?
- PHP Warning with Custom Fields
- Custom post types & Pages hierarchy – Error 404
- filter rest api post by a acf filed
- How to prepend text to custom field value A, but only if custom field value B matches a certain string?
- How do I extract the contents of a CPT’s custom field for all posts?
- How to delete comma from the end of results? [closed]
- Publish post and create additional posts with same content
- Creating multiple CPT posts from one Gravity form
- Events with multiple event dates + permalink for each date
- Function not pulling image or text from custom post type
- Custom field totals
- WP_Query arguments: Loop through custom post type – get all entries except excluded meta_key?
- Types plugin isn’t compatible with my custom post type
- Show Posts in Vertical Tabs with Scrollbar
- How do I filter a custom post type loop by a field?
- Custom Post type as Taxonomy
- Display ACF object field data using Elementor Custom Query