'orderby' => 'post__in',
'post__in' => array(5,6,3,8),
You need ACF to pass the ID’s in order but that should do it.
Related Posts:
- can’t get query to order posts by acf datepicker
- Order posts by custom field DATE value
- How to List Events by Year and Month Using Advanced Custom Fields?
- wordpress query – orderby child post date
- Compare two numeric custom fields
- Advanced Custom Fields – Query Efficiency
- Query by one meta_key and sort by another (possibly NULL value)
- Filter query posts by the count of metas for a meta key
- mySQL query. ORDER BY meta_key
- Order query by post meta value
- Ordering by a metadata subfield in WordPress?
- Order RSS content by an advanced custom field value
- Order by title – but now built in wordpress func, sort the_title
- Get the_field of Advanced Custom Fields in a custom query [closed]
- Querying with WP query using meta key price
- Advanced Custom Fields – Relationship post foreach query
- How to manage a particular “order by” for get_search_query()?
- Order terms by count – missing terms
- Querying Advanced Custom Fields
- How can I get the name of term post meta value which equals term id
- Exclude in get_pages() based on meta field
- JetEngine Query Builder – order by value from repeater
- Order posts ascending from posts in array
- WordPress query: merge meta key (number) values and sort
- Order WordPress Query by Custom Field While Still Using Tax_query Argument
- “order” does not affect order of custom query
- Query Posts that have or don’t have a meta_value and order by the same ASC
- Advanced Custom Fields Query with Different Values of the Same Key
- Apply ordering args to newly merged queried
- WP_Query orderby meta key/value suddely stopped working
- Modify a query using both a text field and a true/false AFC field
- Ascending & descending posts on same page with IF statement
- How to display SQL query that ran in query?
- How can I create a meta_query with an array as meta_field?
- Query multiple meta key values?
- How to Optimize WP site for millions of posts
- How to get comments by post ID?
- Differences between wpdb->get_results() and wpdb->query()
- Order get_terms using a Custom Field
- Is there a way of increasing the speed of this query?
- Get all image from single page using this query
- How can I query all users who registered today?
- Get Terms by IDs with IDs order
- Sort posts by Date (DESC) and by Title (ASC)
- Reversing the order of posts AFTER the query is performed
- what are the numbers between curly brackets in search query
- simple sql query on wp_postmeta very slow
- Using WordPress public query variables
- How to Use Wildcards in $wpdb Queries Using $wpdb->get_results & $wpdb->prepare?
- When/why does ‘$query->get( ‘tax_query’ );’ return empty?
- How to get link and title of next and previous post on single page
- Create pagination and order according to alphabet
- wpdb get posts by taxonomy SQL
- Is there any difference between hooks posts_where with posts_join and posts_search performance wise?
- Custom WP_Query order by post_meta and (author) user_meta
- How many WordPress SQL Queries per page?
- How to display Section for certain time
- Add multiple value to a query variable in WordPress
- Search custom post type by meta data
- Custom query_var causes displaying posts archive on front page
- Slow wp_enqueue_media()
- Multipart/formatted MySQL query problem
- What is the most efficient way of implementing a favorite post system?
- Remove [gallery] shortcode altogether
- wp_dropdown_categories with multiple select
- Query posts from current year
- Why does get_the_time(‘F j’) return November 30 for all posts?
- How to tune search argument in WP_Query to show only exactly the same results?
- WP_Query ordered by custom field that is a date string?
- Custom query filter not working on woocommerce category page
- How to delete a transient on post/page publish?
- WP REST API: Order posts by meta value (acf)?
- Very slow query
- query multiple taxonomy and show post count
- Search Terms – Querying on either description__like OR name__like in the same Term Query?
- Query & Sort Comments by custom comment meta
- Order posts by tags count?
- How to get my loop to pull posts into three columns
- How to display lastest post date in the homepage?
- Custom $wpdb Query for Custom Post Type by Category
- Get a user’s most recent post title
- Categories and products in random order
- Revolution Slider Orderby Two Custom Fields
- add_query_arg() XSS Vulnerability
- Count user posts by user ID, Post type and Post status
- Can’t pass table to $wpdb->prepare
- Query set using tax_query with relation ‘OR’ modifies category object?
- $query->query_var[‘post_type’] not set for pages
- Query by 2 values of a repeater ACF field
- Order Custom post type loop by custom field (datepicker)
- is_archive() doesn’t work on public query var archive pages?
- How to extract all ID variables from a query string?
- When add_query_arg() is necessary?
- Different Main Navigation per category
- How to get category link without a database query
- Insert html after certain amount of posts?
- wp remove query
- Show recent products first but “sold out last” in query
- WordPress creating excessive joins on meta_query with search
- How to display liked posts of current user in wordpress?