This is almost exactly the same as what I am helping someone workout on another question.
Way to include posts both with & without certain meta_key in args for wp_query?
If I’m wrong and I have misunderstood what you need, let me know and I’ll try to help.
Related Posts:
- WP_Query – Order results by meta value
- ORDER BY custom field value
- Sort posts by custom field numeric value using dropdown
- Trying to perform complex custom field query with order by set to field value
- Order Posts by Closest Numeric Values
- Is there a way to do multiple ordering on a multiple meta_query?
- Order by custom field date with ASC order
- Order Custom post type loop by custom field (datepicker)
- Ordering posts by anniversary using only day and month
- Order by Custom Field date not recognized
- Comments form custom fields order
- If value present, order posts by two consecutive custom fields
- Sorting posts by multiple values, combined
- Sorting posts by custom fields in meta_query
- Order RSS content by an advanced custom field value
- Alter main archive, to show posts with meta as last
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Change order of posts
- Meta query with multiple custom fields for archives page ordering problem
- Ordering posts by custom field named “date” in backend
- query posts custom field calculation value
- WP Query – Is this correct?
- Using abs() with custom field in orderby statement
- ORDER BY custom field value out of where clause
- Sortable Custom Columns not sorting correct
- Order custom fields alphabetically
- Ordering by ‘Title’ OR ‘Custom Field’
- Problem with writting correctly a query posts args in WordPress
- How to query posts by month based on date custom field?
- Ordering by ACF custom field vaule
- Sort by an ACF field in a tax_query
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- How to properly get popular Posts by multiple Values
- Order a query by meta_value and then by post_date
- Order by custom field in query multiple
- Can’t sort custom column on user.php by number / meta_value_num?
- Where are custom field values stored in the database
- Using TinyMce with textareas in meta boxes on custom post types
- Having different sidebar content for MANY pages?
- How can I fetch CSS from JSON WP REST API response
- How to set a default meta value for custom field
- Create meta boxes that don’t show in custom fields
- How To Create a Metabox of HTML Content with Instructions For Editors When Editing a Post or Page?
- Using a custom field value to redirect away from a 404 page
- How to use pagination with get_post_meta
- Extra filed under “About the user” user profile
- custom field value date convert to unix timestamp problems
- Programatically import custom fields using wp all import [closed]
- How to construct multiple meta boxes
- Force hide custom field metaboxes
- Order by custom field value not working for acf date field
- How to Validate Post Meta type/extension (Video File Image File etc)
- Meta query with timestamp using WP_query
- Meta_query is not working on Elementor Custom Query Filter [closed]
- Add Custom Field to a template page backend
- custom field not saved
- Auto-remove custom field with no value on publish
- How to schedule a custom field value update?
- Hide custom meta data if empty
- Advanced search for meta fields
- Woocommerce Product Custom Select List (not variation)
- How to find a post using XML-RPC without knowing ID
- Specific coditional usage [closed]
- Can I access a post meta field before the loop?
- How to I make my post title link to a custom field
- Show image if author meta (profile fields) exists outside loop
- How can I check if a custom field was updated?
- Buik update custom field values from external API
- Get custom fields without _edit_last, _edit_lock, _wp_page_template and _visual-subtitle
- award points to a user each time they update their cpt post
- TinyMCE custom button retrieve value from custom field
- Update post meta data (custom field) by post link
- Changing order in which custom fields appear in dashboard
- Let Users Filter Posts by Custom Fields
- Retrieving custom field value with get_post?
- Run Function if Order Meta Exists – WooCommerce
- Using Custom Fields to Trigger Specific Actions on Saving a Post?
- User query – getting values for custom meta keys/fields
- Expire Date Condition not Working ACF WordPress
- trying to add extra field using hooks
- Can’t set custom meta fields for a post
- Hiding Dropdown Fields
- Custom fields with wordpress
- what would be a good example of a php dynamic code to display contents of textarea?
- Append custom field items to content from plugin
- Text in header as a page – hide from Web crawlers
- When post is updated, custom metadata in text area field is overwritten
- Show or hide lang=”ur” in main element
- How to use a custom field for search engine optimization
- Fetch data from a WP page with same name as current username
- Getting content from custom fields of different pages on a single page
- Custom Fields – How can I remove the publish option for certain users
- Can i categorise my meta box?
- When editing a post with a custom meta box the values aren’t displaying correctly
- Function to retrieve a picture if there is no picture is attached
- Show posts containing or not custom field
- custom field as a boolean with a checkbox?
- Website that sells statistics
- Extract array from custom field