orderby
defaults to post_date
, to order by the IDs you supply, you have to orderby post__in
$ids = get_field('homepage_lineup_new', 'option', false, false);
$query = new WP_Query(array(
'post_type' => 'post',
'posts_per_page' => 15,
'post__in' => $ids
'orderby' => 'post__in'
));
Related Posts:
- How to store ACF custom fields data in a custom table
- Redirect to another page using contact form 7? [closed]
- How to create repeater field manually, without plugin (ACF Pro)?
- ACF checkbox return format based on page
- make p tag collapsed after 3 rows
- Pulling Advanced Custom Fields from other pages
- ACF: Hide a div or template section when a custom field (in a field group) is empty
- Sort posts by Date (DESC) and by ACF: active_inactive (ASC)
- When unit testing a plugin, does the plugin need to be in the wp-content/plugins directory of the WordPress tests install?
- How can I prevent a plugin from updating unless it’s minimum PHP version is met?
- Determining where fopen() is writing files when used from WordPress AJAX call [closed]
- How Restrict access to admin dashboard by specific static ip?
- Overide a function that is inside a plugin
- How to get images from EDD post?
- Add multiple attributes to product from php
- How to install and activate a plugin via an external PHP script
- Sanitizing, Validating and Escaping in WordPress (Plugin)
- How to remove xmlns on language_attributes()?
- How to initialize something in unit test before the init hook being called?
- Add category to body class
- Plugin Development sqlite or WordPress’ database
- How to review WordPress website php version compatibility?
- Add keywords meta to index.php page
- Download any file after submitting a form [closed]
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- woocommerce 3.2.1 not sending order notification emails
- Redirecting a buddyboss profile tab to a different tab if not subscribed to a specific membership
- Add a CSS class based on categroy id to archive pages
- Access WordPress data from external PHP application.
- Problem with PHP wordpress, Undefined index: in C:\xampp\htdocs\wordpress\wp-content\plugins\epoch\classes\core.php on line 190 [closed]
- Can you use another Profile Builder shortcodes through advanced custom fields
- How to create a custom post type that contains another custom post type?
- WP Query. Is there a maximum size?
- WP Plugins – Use includes to display page content
- Finding the screen id of a page generated with add_menu_page
- Can i add custom code in Source, Header from function.php?
- How to make multiple admin pages for one plugin?
- Problem with isset and $_POST
- Keeping and updating ACF and ACF Pro at the same time
- Redeclare function after plugin activation
- get_edit_post_link() not working on wp-cron
- Woocommerce Backend Search by Title and SKU
- Control page content visibility based on URL parameter
- WooCommerce Shopping Cart Not Initially Showing Products [closed]
- Plugin not working & permalink erorr after upgrade to php 7x on Nginx
- How to translate wordpress error message
- Override a Plugin Function
- All custom widgets are not showing in widget area at the same time
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- I want to generate the pdf and save it in library?
- Add key and value to an array in another file
- same user role or copy the user role to be same as the other role
- Passing PHP Variables to AJAX Loaded Pages
- Social share buttons text shows up on post excerpts
- How to displaying Custom image, text and default image logo from Redux Framework option panel
- Plugin Admin panel checkbox unchecked after submit
- Getting URL GET parameter with Code snippets and storing it in database?
- Send Array from JS to php file then insert it in wp database through a plugin
- Offer Download Links for Product Images
- save_post_product action not firing
- acf backend error handling
- How to get the custom field value using SQL query
- WordPress fatal error from php protocol codes
- Possible way of having multiple Gutenberg instances for a page?
- Woocommerce add products to cart
- Changing wordpress/woocommerce notices default message to other languages (text)
- Why does my custom plugin only function correctly once per page?
- How do I change the functionality of an image slider which is part of ACF?
- Using id to show item
- I can’t view the orders on the woocomerce dashboard with the brainblocks plugin
- WP Migrate DB Pro plugin cannot transfer Media files to remote server
- Run a Change Role Cron Job on WordPress via cPanel
- How to display variables from plugin?
- How to make the first letter of a post title uppercase, in a plugin?
- How to echo meta_key in easy digital downloads receipt (Purchase Confirmation page)
- Plugin error “array_key_exists(): The first argument should be either a string or an integer” [closed]
- .htaccess file doesn’t work, with hundred tries
- How to change the product short description for each product with PHP?
- I want add repository theme folder
- Migrating custom php we wrote from functions.php into a site-specific plugin
- What is the correct entry point for capturing coverage data
- ACF Repeater Field Question [closed]
- plugins_loaded action is not working properly
- Creating a user ‘add custom field’ section
- How do I convince this button to do something when it is clicked?
- WordPress function to add text
- How to Set Limit with WordPress Get Bookmarks Shortcode
- TheCartPress plugin – Make every item in store unique
- Doing action based on input from options menu
- Insert dynamic content into posts
- avatar displays outside of targeted area
- WordPress User Frontend Editing Custom Fields
- How ACF Advanced Custom Field works with Woocommerce Single Product [closed]
- My wordpress site wont load, it gives header error warnings
- Can anyone see a syntax error in this? [closed]
- How to add custom html to the Media > Attachment Details modal?
- Option value not getting updated until page refresh in WordPress
- Fatal error: Uncaught Error: Call to a member function fetch_array() on bool
- Use inline callable for hooks and filters
- Error in using ‘admin_enqueue_scripts’ action through a class