To evaluate a meta value as a number, use meta_value_num
.
Try:
$args = array(
"fields" => "ids",
"meta_key" => "jogador_oficial",
"meta_value" => true,
"meta_query" => array(
"relation" => "AND",
"query_one" => array(
"key" => "quantidade_corretas"
"orderby" => "meta_value_num",
"order" => "DESC"
),
"query_two" => array(
"key" => "tempo_total"
"orderby" => "meta_value_num",
"order" => "ASC"
),
),
);
Related Posts:
- Redirect to another page using contact form 7? [closed]
- Creating two database tables via plugin
- Query Posts by Custom Field ‘Price’
- Advanced Custom Fields query
- How use %like% in sql statement wordpress
- Accessing GET variable named ‘error’
- switched from query_posts to WP_query, not working now?
- AJAX search posts and pages
- Using a post-signup hook to get user details
- how to use in custom single.php template using php?
- How to create a custom shortcode based on the layout?
- ACF: post query, hide duplicate values [closed]
- Are plugins instantiated on every request to WordPress?
- Using ACF default value to autoincrement a number field
- Delete data from custom table when deleting a post
- How to Join wp_posts & wp_postmeta table using custom query
- adding dynamic/multiple slug values in ‘option_none_value’
- Performance considerations – postmeta table versus new table for custom posts with foreign keys?
- Checkbox field that add a subscription product and change prices of other products in checkout and cart page
- How to use information from the database in the front-end?
- Add Custom Field to Post Pages via Plugin
- ACF Query result in a new td (echo)
- plugin_dir_url(__FILE__) searches parent theme in ACF extension
- How to insert variable which contain array value in wp_options table?
- Shortcode in a blog post, footer and related products stop working
- WP-Snap too slow (caused by WP_Query?)
- WordPress Meta Query: Relation is not working correctly
- Making a Custom Post Type Publish Loop
- Checking url from plugin [duplicate]
- How to use `$order->get_discount_total()`, avoiding defoult WC decimal rounding?
- Accessing Correct Database to Create REST API Endpoint
- WP_Query does not return the result even if the data is present in the database
- Plugin question, How to insert a colon in a value box
- Show posts in custom order
- Query Custom Post Types on Available Dates
- How to Resize the Custom Post Images?
- Custom Login Page — wp_signon Headers Already Sent?
- breadcrumb need to show all pages and subpages
- Widget’s container?
- custom uploader in the admin area
- Amazon.com intergration with WordPress?
- Best/Correct way to add an option to a category
- Is there a plugin for automatically adding a word or symbol after a trigger word? I.e. Like a search and replace but more like search and add? [closed]
- Plugin main file is constantly been fired on every website visit
- Change letters for day name
- Where should custom post types be registered in a plugin?
- Keeping and updating ACF and ACF Pro at the same time
- How to be escape Variables and options when echo?
- (WordPress 5.8.3) Function.php or a plugin for better performance? [duplicate]
- Basic question about accessing scripts in my plugin
- Release the plugin in the WordPress repository where redux is used
- Can the uniqueness of the plugin file/plugin slug and version number be trusted?
- Dokan Marketplace store link in single product page
- Automatically download, install and activate plugins that my plugin depends, how?
- Integrating boxtal PHP library into a custom WordPress Plugin
- Translations for my plugin don’t show up
- Error in pdf generating plugin using FPDF
- How to create WordPress custom end point with multiple parameters?
- Different custom templates for product category [closed]
- Images under 1MB are not being compressed
- What is the easiest way to rename a plugin (and also avoid plugin updates)
- How to redirect to same page after form submission
- WooCommerce – set session with new cart item meta when updating cart item quantity [closed]
- flush_rewrite_rules() not working with update_option_{$option}
- plugin dev – minimum base css specificity?
- Using WordPress to build membership Page
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- A server-side hook failed when committing plugin code to SVN
- Content-Security-Policy Headers are there and showing the correct settings, but still getting a refused connection
- Set WordPress Transient Expiration via Variable Value
- Why WP_Screeen doesn’t show all options with admin_body_class
- I changed font of wordpress dashboard but it is slow!
- SMTP Error: Could not authenticate [closed]
- How to add support for caching plugins for my own plugin?
- Why Does The `auto_update_plugin` Hook Disable Management?
- Return multiple values in a shortcode attribute
- Sanitizing file & directory form input
- Get Every Key & Value from Array then Display All in New Line
- Is there a way to add custom endpoint to specific page only
- IF condition based on wp_remote_get output
- How do I add $_SESSION[”] to my wordpress page?
- plugin wraps the entire content
- Add User Role: Pre-saved in User-Meta [SOLVED]
- Adding custom meta boxes to specified custom post type
- Shortcode Attributes to Return different $_POST
- WordPress 5.4 – How to prevent to enter only certain values in custom field
- WooCommerce: Force coupon for existing/registered customers [closed]
- Plugin Activation Error – The plugin generated 22 characters of unexpected output during activation
- How can I add IP address to my post?
- Add_rewrite_endpoint doesn’t work with post name permalink structure
- Plugin onclick button activate other plugin
- composer not working on my plugin when i upload it to my website
- How to use the CSS of the WordPress core in the development of my administration page?
- add_submenu_page returns null
- What is the WordPress approach to custom data?
- get_option / wp_localize_script Not Working in OOP Plug In
- I receive taxonomy id
- How do we update a custom file upload field with the Advanced Custom Field plugin?
- output html on post or page from custom plugin [closed]
- Loop in elementor custom widget not working