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
- What’s the preferred method of writing AJAX-enabled plugins?
- How to add a shortcode button to the TinyMCE editor?
- Plugin upgrading: Widget settings
- Is there any record of installed plugins in the database?
- Using require_once in a Plugin?
- How to call “page specific menu items” in template [closed]
- WooCommerce ‘all’ orders no longer being displayed – how may I debug/fix [closed]
- Custom headers for the WordPress plugin directory
- plugin wants to update to wrong plugin
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Understanding apply_filters
- Editor not displaying dynamically after clicking on the button
- Make the plugin directory recognize new version numbers
- Master menu item for multiple plugins?
- Where do I add a new table’s name in wpdb?
- How to create popup same as wordpress popup feature
- How to submit documentation with plugin
- How to customize user search
- Upgrade Private Plugin without Deleting
- Placement of Code in Plugin for hooking `save_post`
- How to make first_name and last_name required fields in user profile?
- Making my plugin translation ready. Poedit not working
- How can plugins have their own pages?
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- How to keep users unique id stored in session in addition to IP in WordPress plugin?
- Plugin version is not showing up in wordpress.org plugin directory
- wordpress plugin is not activating from widget
- uninstall.php file in Plugin to clean DB
- How to get specific setting by settings_fields()?
- Save / Show multi line text in metabox
- Best way to initiate a class in a WP plugin?
- TinyMCE Styles Dropdown not adding html tags other than span
- How to create a child/addon plugin
- How to secure the release of WordPress plugins / avoid copying plugins?
- add_filter doesn’t work
- How can I insert thousands of Woocommerce products by batch with PHP? [closed]
- how to force tag page layout to use same as search layout?
- Delay JavaScript files from loading
- Run function on plugin activation before plugin is loaded
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- Replacing global wp_query
- Why is it important to check for isset and is_array before checking in_array in this example?
- Upload files to the plugin menu
- WordPress custom plugin that uses woocommerce enabled payment gateway for payment [closed]
- How to call external functions from a PHP script in a WordPress plugin?
- Don’t load the theme for a page FROM a plugin EDITED
- WordPress Feed Creator Name Tag Full Name Instead Of First Name
- How to add custom function to pluggable.php
- How to get Recent Post From Each Category with Thumbnail?
- Remove Zero Money From Previews Order woocommerce
- How use wp_insert_post and add og:custom tags?
- Access remote SFTP server via WordPress login?
- How to change “Read More” text?
- Images are broken in Wysiwyg Editor – ACF backend
- How to use wp_editor and save its data in wp_posts table
- My WordPress activation hook isn’t working
- Securing a plugin pop-up window
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Echo custom admin field into a is_single()
- WordPress Boilerplate Plugin doesn’t see callback functions for add_settings_field and add_settings_section
- Hide ‘add to cart’ button for some products [duplicate]
- Exclude specifed files from plugin editor
- Add Flatr button to Sharing option
- Advanced Custom Fields (ACF) Plugin – Random Image in Sidebar
- Upload Image to desired directory through plugin
- Jquery post responses 500 error after some time and lastly an 503 error
- How can I delete the options from DB when the plugin is deleted?
- How to add custom html to the Media > Attachment Details modal?