Have you played with the other arguments available to WP_Query?
$slideshow_args = array(
'post_type' => 'slide',
'posts_per_page' => '10',
'orderby' => 'post_date',
'order' => 'DESC'
);
$slideshow = new WP_Query( $slideshow_args );
Related Posts:
- WP_Query orderby date not working
- Get Recent Posts by Date in Multisite
- WordPress Custom Query to show posts from last x years
- How can I hide posts that are over 2 years old
- Date query not inclusive despite parameter being true
- Use meta_query to display events by date in custom field
- Ordering by meta_value AND date NOT WORKING with wp_query
- How to show recent and upcoming birthdays using meta_query
- Meta Query for specific months
- WP_Query meta_query >= date
- Complex date range with WP_Query and BETWEEN
- Comparing dates in custom field
- How to display upcoming events by dat with Modern Events Calendar Lite
- Orderby ASC changes to DESC in WP_Query
- Complex WP_Query order request: DESC by day, but then ASC by time
- WP_Query: Group events by year, sorted DESC; then by date for each year group, sorted ASC
- Taxonomy and Date in same query?
- Shortcode for latest -not expired- posts
- date_query seems to be ignored by wp_query
- WP Group posts by year(desc) > month(desc) > date(asc)
- Display Current Post’s Position in Custom Taxonomy
- WordPress Custom Search Form Displaying Unexpected Results
- Filtering posts by archive showing all years
- Ordering posts by custom field and grouped by month
- Limit loop to future events
- How to show list of posts with custom field value (a date) that are coming soon
- Show single posts date, in a page of posts
- Added Date Filter To Popular Posts Query
- Comparing Meta Field date in WPQuery using Meta_Query?
- How to get only present and past posts with post_date
- WP Query for all events prior to current date
- Problem with my loops
- Sort posts on custom field AND after that sort on date?
- Get posts by birthday
- Year based WP Query
- Get post closest to today
- Query custom post type by date field only working when two posts match the query
- Get posts from similar time as current post
- Divide WP_Query posts by date & post type
- Query Posts by date range with fixed beginning and end
- Get posts that were most recently tagged
- WP_Query sort by ACF date field (newest first) with blank dates first
- How to query posts based on lat-lng coordinate as post meta?
- How to trigger 404 for custom query var?
- WP_query taxonomy + get all posts with two terms from same taxonomy
- How do I create my own nested meta_query using posts_where / posts_join?
- Best Practice For Querying Grandchildren?
- wp_query display posts from same category of the post
- How to prevent queried posts from being added to cache?
- Order posts by meta value and Date
- How to make orderby ‘meta_value_num’ OPTIONAL?
- How to implement time filter to show random post 1 month for one category and 3 months for other categories
- Pagination working everywhere but the index page
- How can I query posts with newly uploaded images?
- Conditional arguments WP_Query for post custom fields
- How do I search inside specific taxonomies in WordPress
- Random loop with code to prevent duplicate output returns no output at all from time to time
- Single meta_query query using OR instead of AND in request’s WHERE statement
- What’s the purpose / logic of split_the_query in WP_Query->get_posts
- How to loop for every result found in the_content() when using the search query?
- if statement in wp_query arguments
- Slow WP_Query for custom post type
- How to build a WP_Query using mulitple tags and using AND or OR operator between them
- How to restrict the search fields for a specific post type
- Pagination links missing for first link (1) and previous button? How to get pagination links to work?
- Query with relation and one without relation using multiple taxonomies?
- WP_Query with different postmeta filter for each categories
- Automatically Query Parent Taxonomy
- Shouldn’t I be able to modify the main query by this filter?
- Debugging wp_query orderby for taxonomy
- Get all posts which was posted on X Days WordPress
- Display posts with specific value first in query
- wp_query comment and meta query
- Show menus to one admin username
- inserting content of 1 Post to in another with a template hierarchy
- Get the child category ID of current category
- I need to run a AJAX Fuction from within a WP_Query but only works on first item
- Limit number of posts in WP_query per month
- Use have_posts() with array of post results retrieved by $wpdb->get_results
- how to translate countries output from wp database?
- Custom query does not find pages
- wp-query and wp_get_post_terms on custom taxonomy archive page
- Display posts ONLY from the current logged in user and current week/year/month Elementor posts
- What’s wrong with this meta query? (order by meta key, then title, doesn’t work)
- get_posts function not returning any results
- SELECT TOP 1 in wp_query for each groupby meta value
- Get unique post by meta value using wp_query
- How to display author meta and count numbers for each user in comment.php?
- XMLRPC pingback.extensions.getPingbacks not work with parameters
- Get posts meta_query by repater field
- WordPress pagination not returning posts on second page
- How can I use two custom fields in WP Query
- How can I use a specific wordpress page template if certain words are used in page title [closed]
- wp-query with a tax-query relation of NOT
- how to exclude store in clipper theme wordpress code php
- Get a list of the last posts grouped by author and filtered by category
- Letting users sort posts
- Related posts with WP_Query
- How to replecate the _fields parameter in custom REST api endpoint
- How to get all post_id and meta_value using meta_key in wp_postmeta table