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
- is_plugin_active function doesn’t exist
- How can I find plugins’ slug?
- How to implement WordPress plugin update that modifies the database?
- My custom made plugin has “a new version available” which links to unrelated plugin
- wp.media update options and force render on uploader
- WordPress Plugin Development In MVC Architecture, How?
- Where can I find a schema of wordpress plugin core architecture?
- How to remove duplicate sub-menu name for top level menu items in a plugin?
- WordPress Plugin Development from Scratch. How? [closed]
- Customize plugin update “new version is available” text
- category_name not working (not showing up in sql query debug)
- “Donate to this plugin” for WordPress.org Plugin Authors
- What happens when two plugins have the same 3rd party class included into them?
- add_rewrite_rule, plugin activation and plugin deactivation
- How to handel multiple checkbox field in the admin settings page with Settings API
- Update Multiple Post Meta for the Same Post In One call?
- Allowing Custom Capability to Manage Plugin Options
- wp_insert_user – how to send verification email before logging in
- How to show custom message once on plugin activation?
- How do I configure WordPress to talk to a Microsoft SQL Server database?
- How to fetch serialized data from wordpress options
- Passing URL parameters to WordPress pages and pretty url
- How to load a new template page according to a particular URL?
- WordPress network: set themes and plugins for new blog
- How to get the custom page get_permalink?
- Plugin translations problem
- Advanced Custom Fields into functions.php
- How ( and mostly at what time ) can i prevent the alternate cron from running?
- What is the function to get plugin base url in multisite?
- PDF download – use wordpress functions
- Admin-ajax.php is dying “0” without processing function
- How do I register a stylesheet inside a WordPress widget?
- WordPress register_activation_hook table creation not working
- API to filter new user registration $POST data?
- Detect if a plugin was included in a certain page
- How to remove an Ajax action
- nonces in custom oop plugin
- Set cookie then immediantly refresh the page
- How to add an attribute to the body tag with a plugin?
- Override the core function locate_template
- Has anyone used require.js for handling plugin scripts?
- WP_Query with tax_query, order by most ‘matches’
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- Multiple files in a plugin
- Wp die causing 500 Internal Server Error?
- adding a new value to a serialized array in WP_option table
- Redirect to a welcome page after updating plugin
- Set user ID at time of wp_create_user
- WordPress Automatic Plugin Update Renames Plugin Directory
- ‘wp_login’ action hook not working with wp-login.php file
- Is there any way to get all the name or slug of template parts used in a page?
- HTML in WooCommerce settings
- Can WordPress Plugin Directory Cache Delay the Upload of Images?
- What function can I use consistently to escape possible HTML for editing and display?
- Redirecting to home page after login as custom role WordPress
- Where (or when) should I register a new taxonomy?
- How to change custom post type pemalink Hierarcy
- Test files for plugin development
- How to stop activating a plugin and show admin notice when dependent plugins minimum version is not met
- DROP TABLE with uninstall hook not working
- Fixing WordPress’s Bug (failed to send buffer of zlib output compression) results in “White Screen of Death”
- Disable woocommerce cookies and delete cart data automatically
- Send Custom welcome email to specific user group
- How can I make my metabox appear?
- Consolidate plugin functionality into a theme
- qTranslate remove default directory from link
- WordPress Backend HA (Automatic failover)