You can rewind_posts()
then just call $loop->the_post()
once outside of the while
loop, output the thumbnail, and rewind_posts()
again to output the ul
list.
Related Posts:
- Thumbnail of the latest posts page
- Pages inside a page (with thumbnails)
- Customize WooCommerce Product Images (Placement and size) [closed]
- Including post thumbnail url in loop’s post object to reduce number of queries
- WP Loop. If featured image is a panorama (3:1 ratio) execute some code
- Pulling in featured image into default recent posts widget
- Closing the loop…featured image variable based on post id
- WordPress get post thumbnail url
- Default featured image set as background image [closed]
- How can I access a post’s feature image outside the loop?
- How to check all items in a loop have post thumbnail?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- wp_get_attachment_url not fetching URL?
- Pages with a loop (index, archive) are loading the first image as post_thumbnail
- Display Featured Image
- Place the Featured image on a post, before the first via code
- Add Title Attribute to WordPress Image the_post_thumbnail
- Retrieve each widget separately from a sidebar
- Cropped featured image replaces original image in gallery
- Avoiding using a loop to access a single post
- Adding ‘current_post_item’ class to current post in the loop
- Where should I use post_class()?
- Landing Page – Redirect Loop?
- Sort Popular Posts by Views for the Last Week
- get_the_foo() in the loop – does it perform another query?
- Is it possible to display previous post revision?
- Check if date of post is yesterday
- Regenerate thumbnails unexpected resolution (96 x 96)
- Fix inefficient loop breaks post.php on form submit
- Adding shortcode closing tag after a loop
- Get Pagination (WP-PageNavi) not to work
- Filtering The Loop For Single Page and Blog Page
- the_content() seems to block my ACF-code
- Pulling current post/page data into header.php
- Removing the_content() from the page
- Loop and Page template : my WP_query don’t take args
- How can I add pagination and how can I change thumbnail size?
- Lazyload post thumbnails
- If I Regenerate Thumbnails, would WordPress delete the existing Thumbnails and replace them with ‘new copies’?
- Filter the loop by categories using checkbox form
- Get single post from tags array
- Duplicated posts on category page
- WordPress loop: exclude if it is the latest post
- Apply an Incremental Counter in an Array Function
- Get all posts including sticky ones with get_posts(),setup_postdata(), and foreach loop?
- How to display first post thumbnail as a background image of a widget?
- Page-loop is looping content from custom loops on the same site. How to avoid that?
- WordPress: Loop Help
- Woocommerce: How to display product price [closed]
- ‘Post-thumbnails’ feature does not seem to register
- Display Post Author Link above the loop
- Enabling users to control custom loop’s query
- Loop counter style
- Can I add generic numbering HTML classes to items as a loop runs?
- Can’t get post thumbnail to display in foreach loop
- Add “showing posts x to x of y” in custom post type paginated loop
- Custom Post Type on Homepage – Studiopress Genesis Framework
- New loop vs widget
- display post format text in loop
- Yoast taking over my WordPress title tag [closed]
- Pagination broken after using 2 loops to show content
- Getting page slug
- Exclude page from loop results
- How is WordPress changing the content markup?
- Use BuddyPress data in loop (mkdir)
- Wrap every four posts within a div [duplicate]
- Get most recent post for every term in a given taxonomy type
- How can this multiple loop have pagination as described?
- Breaking up the results of a loop
- How do i create a list-posts-page?
- Exclude posts based on an array
- Is file_exists() compatible with timthumb.php? [closed]
- List ALL posts by author on author archive
- Using is_page_template inside loop
- Trying to get all links in my posts
- Creating a User-Adjustable chart in WordPress
- Archive: Lists itself
- How to show the last article in a different way in my blog?
- Thumbnail wouldn’t scale to size properly
- Reorder posts in a loop: have the posts by one particular author below the others
- how to get author comment inside the loop?
- How to create loop in custom page, and get id from url into this loop?
- How to fix pagination for custom loops?
- Check to see if a field is within an array in twig
- Archive sorted by month – separate
- Display single post inside accordion based on form submission results
- One page loop issue with posts
- Humanmade | Custom meta box class: How to display a repeatable meta box group?
- Can’t print out returned value
- Building theme so user can change header image [closed]
- Get query result before posts are displayed?
- WordPress Group By Problem
- Home page loop with pagination problem
- Different thumbnail size than actual picture in post
- get_page() unlike Loop returns the post content without html tags. How can I fix this?
- Problem with ms-thumb-frame-selected class in Master Slider
- I want the first post on my home page to be lengthier than the rest (example included)
- How can you make it so the comment box shows on some pages or posts but not all?
- wp_mail function not working in user query loop
- How to set and retrieve cookies while in the loop