You have placed orderby in a wrong array.
Please check modified code.
$loop = new WP_Query( array(
'post_type' => 'partenaires',
'orderby' => 'title',
'order' => 'ASC',
'posts_per_page' => -1,
'paged' => $paged,
'meta_key'=> 'partners_order',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'tax_query' => array(
array(
'taxonomy' => 'type_partenaires',
'field' => 'ID',
'terms' => $term->term_id
),
),
) );
Related Posts:
- WP_Query – Order results by meta value
- ORDER BY custom field value
- Sort posts by custom field numeric value using dropdown
- Trying to perform complex custom field query with order by set to field value
- Order Posts by Closest Numeric Values
- Is there a way to do multiple ordering on a multiple meta_query?
- Order by custom field date with ASC order
- Order Custom post type loop by custom field (datepicker)
- Sorting within nested queries / multiple meta keys
- Ordering posts by anniversary using only day and month
- Order by Custom Field date not recognized
- Comments form custom fields order
- If value present, order posts by two consecutive custom fields
- Sorting posts by multiple values, combined
- Sorting posts by custom fields in meta_query
- Order RSS content by an advanced custom field value
- Alter main archive, to show posts with meta as last
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Change order of posts
- Meta query with multiple custom fields for archives page ordering problem
- Ordering posts by custom field named “date” in backend
- query posts custom field calculation value
- WP Query – Is this correct?
- Using abs() with custom field in orderby statement
- ORDER BY custom field value out of where clause
- Sortable Custom Columns not sorting correct
- tax query between operator like
- Order custom fields alphabetically
- Ordering by ‘Title’ OR ‘Custom Field’
- Problem with writting correctly a query posts args in WordPress
- How to query posts by month based on date custom field?
- Ordering by ACF custom field vaule
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- How to properly get popular Posts by multiple Values
- Order a query by meta_value and then by post_date
- Order by custom field in query multiple
- Can’t sort custom column on user.php by number / meta_value_num?
- Is there a way to set default custom fields when creating a post?
- Pre-filling custom fields on New Post
- So much data in postmeta
- Show only posts which can be commented OR have custom meta field
- Show Custom Comment Fields when editing in admin
- How do I make a custom field choose an image?
- get_post_meta() unserialize issue – returns boolean(false)
- Edit Custom Database Tables in WordPress
- Custom Meta Boxes: Store two values in one repeatable field
- Gutenberg Custom Block
- Up/Down voting system for WordPress
- Custom Meta Field not Working with qTranslate [closed]
- Change content before writing to database
- post meta data clearing on autosave
- Problem in custom meta boxes
- Loop through two different sets of custom fields
- Query Problem – Show posts within category ‘x’ that have a custom field between ‘y’ and ‘z’
- Add description text under input field for new profile fields
- Get all meta keys assigned to a post type
- sort search results by custom fields using dropdown
- WP Custom Fields Metabox Disappears – ACF plugin issue [closed]
- Get all posts that do not have a specific custom field without using a subquery
- How to query posts with certain custom meta data, and output Post data
- Custom Fields Not in Search Results
- How to loop through certain custom field values
- add_action and remove_action if custom field exists
- Store array as single, serialized post meta field or many post meta fields?
- Get an advanced custom field after post publish
- update_post_meta for repeated custom field [closed]
- Delete custom fields when deleting posts
- Pull custom fields from custom posts within a loop
- How to display custom fields from a plugin
- Adding “meta” info to WP site PHP function?
- WordPress Media Uploader custom Javascript not working
- Custom fields issue [closed]
- List custom queried terms in the edit-tags.php?taxonomy page
- Display meta box dropdown (from custom post type) in the page post type
- how can I show name and value of Custom Fields together?
- Adding simple (one button) Audio player using Custom Fields?
- No result update a custom field using wp_schedule_event
- Display custom widget value in header.php
- Gravity Forms Update post meta from template [closed]
- Display metabox title for custom fields with values
- wpdb function insert doesn’t work
- Adding Custom Metadata to my Archive/Posts page
- Orderby if between two meta fields
- Custom meta POST request fired twice when updating a post in Gutenberg
- want to add video upload option for front end user
- Saving and using Custom Field in user settings/profile “Checkbox list”
- Extend WP_User_Query or WP_User to return all custom fields?
- WordPress taxonomy child image
- Create custom fields/meta data gender+country – radiobuttons and dropdown on register screen for these fields
- Override edit_custom_walker.php to conditionally show input depending on menu position
- Change event firing in wordpress
- Download stuff after filling fields?
- Custom search with meta fields
- Use custom field value as href
- Custom field for image, not showing image!
- save all acf options in one meta_value [closed]
- Can running a WP-Cron to update_post_meta cause performance issues?
- custom field value is blank or empty
- How to add a custom field to the comments “Quick Edit” screen?