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:
- 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?
- Is there anything that Joomla or Drupal can do that can’t be done in WordPress? [closed]
- Any post install tips after installing WordPress 3.0.1?
- Version Control: Entire site or just pieces?
- Getting a stack trace when an error occurs?
- How do I filter the excerpt metabox description in admin?
- Maintaining synced staging/production WP sites
- WordPress Multi Site Best Practice
- Sub posts and non unique post_name
- SQL Statement generated by WP_Query not producing expected results
- How to let a single post have its own domain name
- How to instantly delete posts/pages permanently?
- How to re-arrange media uploaded using : media_handle_upload() as per year / month
- How could we customize the all posts page in the admin panel?
- Adding Pagination on a Custom Author Page
- How can I get the page url slug when ‘post_name’ returns an id?
- Woocommerce Product page edit
- Convert an theme options page to use in customize.php also?
- The best way to write an FAQ page?
- How to provide a demonstration of WordPress for new customers
- Showcase elementor templates
- Add clickable arrows to parent menu items with children elements e.g. with
- Display User ID instead of Name or Username
- Woocomerce custom billing address fields display in order details [closed]
- Bind JS event to WordPress control customizer
- Get rid of title from static front page
- Make custom page look exactly as homepage
- $wpdb->insert running multiple times?
- Track usernames with piwik [closed]
- Specific colours for wordpress author ids
- How do I list custom taxonomy terms with the links?
- How to unpixelate logo?
- Remove header title form page through CSS [closed]
- Filtering by multiple conditions in the loop
- custom css and javascript not working on page defined as template?
- How to get Previous Visited Page Information
- How to add Custom Css within the Editor?
- Custom admin menu items
- Taxonomy template is not reading
- Conflict between Yoast SEO and my custom theme
- How do I target this page specifically?
- Local Shortcode Using WordPress Custom Fields
- How to send email with wp_mail() with from email taken from contact form instead of the host?
- Change post template the proper way
- Is there a way to hide a user’s posts from their Activity feed?
- Setting up staging area
- Word Press Theme Customiser and Child theme Function.php
- Security Issues with custom user role or changing core role capabilities?
- Do i need to use PHP in customizer api?
- Background image no more visible in the preview
- I need to make the title of the page dynamic in my custom plugin
- Custom CSS working on home page but not on NEW created PAGE