this is a fairly broad question since there are multiple solutions depending on your exact needs. My method might involve:
- Setup normal ‘Loop’
- in each iteration grab the featured image using: wp_get_attachment_image_src( get_post_thumbnail_id( post->ID ), ‘large’ );
- build an unordered list of images
- Use a plugin that works with UL listitems to generated a slideshow with the desired features
That’s pretty much it. Can’t test this but might end up looking like:
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
echo '<div class="flexslider"><ul class="slides">';
while ( $the_query->have_posts() ) {
$the_query->the_post();
echo '<li><img src="' . wp_get_attachment_image_src( get_post_thumbnail_id( post->ID ), 'large' ) . '" /></li>';
}
echo '</ul></div>';
}
And then use maybe
Related Posts:
- How to query posts based on lat-lng coordinate as post meta?
- Way to include posts both with & without certain meta_key in args for wp_query?
- How to trigger 404 for custom query var?
- How can I use WP-CLI commands without –allow-root
- Calling a wp_query $posts causes a 500 error
- 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?
- meta_query not working properly
- Best Practice For Querying Grandchildren?
- Using tax_query reverses my post_type argument in a custom WP_Query
- creating wp query with posts with specific category
- $wp_query->current_post restarts from zero on paged pages
- wp_query display posts from same category of the post
- get complex results set according to category structure
- wp_get_post_terms of cpt but not duplicates if they are used more than once in the loop
- How to prevent queried posts from being added to cache?
- Order posts by meta value and Date
- Ignore post by meta value in the main query
- Display posts in 3 days chunk
- 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
- How to do a query on custom taxonomies that is uncategorised?
- 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 choose between hooking into per_get_posts or into parse_query
- Woocommerce returns Product post_status as published even tho it is in status draft
- remove query arg from url after set query
- How to loop for every result found in the_content() when using the search query?
- if statement in wp_query arguments
- How can I fix: “Notice: Undefined offset: 0”?
- SQL: What is wrong with the following query (generated by WordPress WP_Query, ordering prices)
- Order By table field comment_status in WordPress > 4.0
- Slow WP_Query for custom post type
- How to build a WP_Query using mulitple tags and using AND or OR operator between them
- WP_Query Pagination on multiple-loop page breaks WP or doesn’t show up
- Why isn’t my `meta_query` array functioning properly?
- Using hook to use DISTINCT in a wp_query
- Overwrite YoastSEO meta-tags with another page’s [closed]
- Import wp users via one click demo option
- How to restrict the search fields for a specific post type
- Slow queries on a huge database
- 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?
- WP Query crashes on more than ~ 2000 posts
- different for loop if screen resolution < 1000px
- insert value from html into data base with wordpress
- Debugging wp_query orderby for taxonomy
- Get all posts which was posted on X Days WordPress
- Pagination is not working with custom query inside a homepage template
- How to load a script code only in posts?
- 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
- wp-query, pull children of parent page
- How to change tag based on metabox value within $wp_query
- What’s missing in this wp_query and meta_query
- Tax Query on product_cat using NOT IN as operator does not exclude that category
- How to use the Term Object from a custom select field in a query
- Random users always showing same 8 users
- How to check if logged in user have pending custom post?
- whether a nonce is required for get type and get_query_var?
- How can I re-query post_type and rewrite the url?
- Wp-query and column blocks
- Sort posts on custom field AND after that sort on date?
- Get last child of given page by ID
- How to query users by post count no less than 10
- Display 3 levels of categories on page
- How can I show only last year posts in wordpress archive?
- Showing most popular post of week
- Related Post by Tags Code
- I can’t get post based on its postmeta value and key
- Change database image location for transportability
- Display three sequential posts on each page load, without repeating previous
- Find by post_meta, then sort by post_meta, then sort by date (wp_posts)
- Optimising amount of calls to custom fields
- Issue in If else condition [closed]
- The sorting of posts by a meta_query with two keys fails while separated as single queries it works
- Extract video content from post to display on front page
- Hierarchical List Pages as a table
- WP_Query with several meta_query-statements and order by meta_value
- query_posts, oderby meta_value & print “future” posts
- Second wp_query doesn’t appear to be working
- difference between methods of query
- post__in not recognizing multiple IDs
- Related posts with WP_Query
- wp_query loop with compare operator simply not working, why?
- How to replecate the _fields parameter in custom REST api endpoint
- Extend search query to search meta keys values based on search string
- AJAX multiple search boxes not merging with array merge
- Display Featured image from custom post type category (custom taxonomy) wise