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?
- Many CPT is conflicting of the custom date
- Tracking changes in admin-page so user gets warning when leaving the page
- filter custom post in rest api with custom function
- Get Posts by multiple custom fields is not working
- Woocommerce custom field search in custom post type [closed]
- Add custom field in comments form
- Custom Fields for Custom Post [closed]
- Order Custom Post Type by Custom Field Value
- Sort and filter custom post type posts by custom taxonomy
- Filter custom post types by a field value
- Displaying All Posts of a Custom Post Type in WordPress Multisite Backend
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Custom REST endpoints for a custom post type with custom fields
- WordPress posts page for customer filtering and sorting along with category filter
- How to Create a WordPress Plugin With Custom Post Type/Custom Field Features?
- Hierarchy and access control for Custom Post Types (CPT)
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- How to integrate a form (Ninja Form or Contact Form 7) with Custom Post Types?
- Sort entries by date mixing two post types
- First custom field value (out of several) displayed twice after query
- Homepage’s content is dependent on the custom field values (set automatically), how do I get homepage to update without manually updating page?
- Cannot save CPT meta box
- Cross reference custom post types
- Adding Page Templates to post but it ignored it
- Order a custom post type admin screen by a second custom post type title
- Include related custom fields from one post type in another post type’s JSON feed
- Admin Custom Meta Box – Pull Last 5 Posts from Custom Post Type
- frontend image post uploader
- Use the same date-based permalink structure for all post types
- Creating a Custom Post Type and Joining with Users
- Is there any way to add a “custom field” to the CPT archive page?
- How to Output which matched meta_keys were found from custom_type_posts?
- Multiple Frontend Filters Using Advanced Custom Fields
- Custom Post Fields at the beginning of a Custom Permalink
- Integrate Custom Post Type Events into Calendar
- Possible to filter custom post type with multiple meta data?
- Hierarchical custom fields
- How to get a custom field value of a custom post?
- Select event where start date is smaller than current date and end date is greater than current date
- How to order posts of a custom post type by date DESC in dashboard Admin?
- Fields for different parts of a page
- Is it possible to activate customfield ‘text description’ upon activating the customfield ‘checkbox’?
- Order post by date with ACF
- Facebook social publisher and custom post type fields [closed]
- How to display products name in a non-alphabetical order, in a custom field (taxonomy)?
- Displaying custom field according to date
- Displaying and searching Custom Posts
- Importing Data from a Non-WordPress database, into WP
- custom comments form for custom post type
- Searching Custom Fields
- Show fields based on taxonomy selection in editor
- filter search custom field query
- Permalinks: custom structure for taxonomy – tags?
- How to let users choose where to search for posts?
- 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)
- Query based on custom fields start and end date
- How to add multiple markers on the google map, at a certain meta_key and meta_value
- Custom fields for custom post type
- How can meta boxes be added to “unknown” custom posts?
- How to sort posts in a custom post type by title in ascending order by default?
- Custom “radio button meta box” not saving correctly