I’m not sure why, but it had to do with the title in my ordering, once I removed that everything started working fine. I’ll leave this open for anyone who knows why.
$query->set('orderby', 'meta_value_num title'); – Does not Work
$query->set('orderby', 'meta_value_num'); – Works!
Related Posts:
- Can’t change WordPress / WooCommerce attribute value order
- Modify existing plugin function using filter (without modifying the plugin directly)
- Limit Media Library to Given Folder
- Archive Listings Filtered by Date Values in a Custom Field/Post Meta?
- What is the proper way to apply the login_form_bottom filter?
- How to filter get_avatar?
- Rearrange elements outputted by comment_form()
- How-to inspect filter-able $vars?
- How to exclude certain widget from showing up on home/front page? [duplicate]
- Custom Queries – Child Categories not showing up
- Custom search page and search by title, content and tag
- Customizing the default logout page of WordPress
- Is there a filter hook that I can use to change how taxonomy term names are displayed?
- Add options to the “Screen Options” section on the “Menus” editor
- Sort posts by multiple meta key values
- woocommerce_checkout_fields modifying existing billing_phone label created new field
- How to add an extra variable to login and authenticate it?
- changing font size and font of a custom message added after comment
- The function can not create a table on MariaDB server
- result from custom filter admin table list backend does not work
- OrderBy multiple custom meta fields
- Remove posts inside pre_get_posts using a custom query
- Order posts with a custom field but also without
- Admin search post meta
- Combine two conditions in one statement syntax [closed]
- Get users based on month ACF datepicker field
- Dynamically Filtering Posts by Data Points – Any Pointers?
- How to append custom text to the output of ‘categories widget’?
- How to Add Additional Search Button?
- Custom Register Link on Backend Form
- Troubles about insering a POST with a SQL query, post_status
- How to make WordPress search page use a relative path
- Adding overlay search to wordpress using add action/filter
- How to get the full product name by ignoring custom modification on it
- where is admin footer?
- Moving Quantity after product description
- Wrap WordPress Login Form in custom Div
- Post filter with multiple checkbox taxonomy terms
- Send default WooCommerce email when switching from custom order status
- How to append the excerpt to the content in the single post page?
- Best way to sort posts with different types by distance
- Add commentmeta custom field to every published comment with SQL
- Show different pages on site depending on user choice
- Custom display for homepage, tag and author pages
- Apply `the_content’ filter to theme customisation live preview
- Custom WordPress SQL Query 4 posts per custom taxonomy
- Add variable : 1 Week ago
- How to use orderby on meta_value when using Pods custom database table storage
- How to add filters to my site?
- Has the table name in SQL for WordPress changed from WP_posts to WPCS_post?
- Add a custom field for sorting the products in a specific category WOOCOMMERCE – Second try
- How to: Easily Move a WordPress Install from Development to Production?
- Is there a flowchart for WordPress loading sequence?
- Essential technical features for high-end WordPress web hosting? [closed]
- How to remove admin menu pages inserted by plugins?
- Sort on meta value but include posts that don’t have one
- How to put logs in WordPress
- How to get the Date Format and Time Format settings for use in my template?
- What SQL Query to do a simple find and replace
- Where are Additional CSS files stored
- How can I edit post data before it is saved?
- add_action(), add_filter() before or after function
- Best Practices for Regression Testing WordPress Websites?
- Remove wrapping div and ul from output of wp_nav_menu
- What Is The Use Of map_meta_cap Filter?
- How to create an API for my plugin?
- get post author id outside loop
- Custom Walker: how to get ID in function start_lvl
- Creative uses of WordPress [closed]
- How to *remove* a parent theme page template from a child theme?
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Multiple Inputs in a Customizer Control
- New WP_Customize API – how does it work under the hood?
- Embedding a SOAP Client into a WordPress Plugin?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Update widget form after drag-and-drop (WP save bug)
- Data sanitization: Best Practices with code examples
- How to benchmark a WordPress installation? [closed]
- Should I delete the default themes?
- Moving WP install from local to live, what about wp_posts GUID?
- Modified wp.media.view.Settings.Gallery in Backbone JS, but editing doesn’t work
- Running Gutenberg React in Development Mode
- Prevent WordPress from automatically installing a new theme each year
- Can we use one WordPress installation for multiple databases, domains and content directories
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Plugin SVN & update API – how are plugins identified?
- WP_Query orderby post__in remains ineffective in the Loop [closed]
- How to Change Order of Posts in Admin?
- Users with custom roles not showing in post author select box
- How to use more than 256MB of memory in the admin?
- How do register_sidebar() and get_sidebar() work together?
- How do you get formatted content of a post using the WordPress API?
- Localization: I want the backend: english and frontend in defined language
- Are there any forks of WordPress (and what is different about them)?
- How to Change 404 page title
- multiple orderby in pre_get_posts action
- Make Custom Metaboxes Collapse by Default
- WordPress Paginate $wpdb->get_results
- Custom maintenance page
- Add button to TinyMCE bar without creating a plugin