Have you tried using rewind_posts()
?
It looks to me like what you’ll have to do is either run the entire query only outputting titles then rewind and output content (however this would output all titles before the content, not in blocks of 5 as you have suggested) or wrap everything in a loop which runs the same query limited to 5 posts each time, then increment the offset parameter by 5 each time (Pagination Parameters).
EDIT: Your third, potentially long-winded, solution is to save 5-title blocks and 5-content blocks into separate arrays, then print them out at the end in the order you want.
Related Posts:
- How To Loop Through list with Custom Post Types
- Custom post type with custom taxonomy permalinks
- custom post type loop
- How to Fix Custom WordPress Loop with Pagination on Single Post View?
- How to check if meta box value is false for all posts then do something based on that
- Tricky Custom post loop
- Loop posts in a table ordered by a custom field value
- Is it possible to add query parameters on the archive page?
- Custom Loop Event Page
- Custom taxonomy page template
- Cant insert wrapper div into index.php
- Pagination on custom post types
- Custom Post Type + Category archive
- Pagination in custom post type page template
- Loop with Custom Post Type and Taxonomies
- How to get past and upcoming post by defining date in custom field?
- display news with pictures 3 small and one large (loop)
- Loop multiple taxonomy in custom post
- $post breaking container loop
- How to query all custom posts of a certain type and checking what category they have
- Custom post type archive pagination with HTML5Blank theme?
- Post data in separate divs with incrementing class using WP_Query
- Redirection loop error after login from a custom post type post
- How to create content automatically when a post is published?
- WordPress Custom Post Type and sort by Tags
- WordPress loop for multiple custom post types
- Load different template for CPT (in loop) in my plugin?
- Custom Post Type Order Index Loop
- After rewriting post type’s URL, the number of queries has increased dramatically
- How to loop custom post type posts by author?
- Display posts from category in page
- How can I pull information from my loop and divide them seperately?
- Multiple Queries and Loops within CPT Archive
- Programmatically Split A Post Into Multiple Pages
- Posts without featured image using other post’s featured image
- WordPress nested loop not working
- Order by custom field attribute
- Get result from Custom Field in Custom Post type
- Display Custom Taxonomy of custom post type
- Pagination not working with custom loop
- Fallback if statement based on the number filtered from it
- If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?
- Turn post into simple slideshow
- Sorting custom post types by taxonomy (So close)
- Inserting random posts
- Nested loop called with shortcode duplicating the content above the main loop
- Create custom post order (with custom post type meta)
- Pagination not working with custom loop
- Pagination not working with custom loop
- Pagination not working with custom loop
- Looping taxonomy in taxonomy?
- next_posts_link returns same content of 1st page
- Custom Loop and Standard Blog Loop Issue
- Listing custom post type items from a couple of custom taxonomies
- Pagination not working with custom loop
- Custom loop won’t work, can’t find problem
- Custom post-type’s pagination not working in category.php
- Pulling in a particular post into a single page based on the post id passed into the code
- Noob Loop Question
- Categories and page filtering with pre_get_posts
- Display multiple custom post type lists on homepage – multiple loops
- Loop through multiple custom taxonomy terms and display posts for a custom post type
- Custom Post Type Loop breaking php
- Styling first post using Advanced Custom Fields
- loop through custom post-type with two meta_keys
- Custom Post Types and 404 Pages
- Query Custom Post Type by Tag
- Loops running into each other
- Display by tag from different post types
- Fourth page of custom post type archive page does not exist
- Loop to pull content from parent element in custom post type [duplicate]
- Loop doesn’t work in single-product.php page but works at normal page
- Catergory args causing loop not to show
- why get_post_meta is returning 0?
- How do I filter a custom post type loop by a field?
- Post_type doesn’t work for widgets?
- the_content() stop images being pulled through
- How do I correctly query posts from a post ID?
- Get Posts From A Certain Post Type In An ID Array
- display custom post type from register taxonomy
- How to exclude certain portfolios from a loop
- Custom post type and have_posts() return empty result
- Show search for data extracted from metabox
- why does my post loop break the page?
- Render a loop in Timber (twig for WordPress)
- How to create custom page templates with default page layout framework?
- show custom post’s post in two different divs [duplicate]
- display all posts in current category
- Limit wordpress posts loop to continue onto another page
- How to loop through a custom post type using a shortcode and output each element in the loop using shortcodes
- Get all active posts that are tied to a custom taxonomy for a custom post type
- Unable to display paging navigation with a custom post type loop
- WordPress search results grouped by post type
- How to print different informations for different post types inside The Loop?
- Allowing null vairiable
- WPNavi pagination links not working on custom pages
- Filter page ID outside the loop and order
- Best practice to display a list/archive of Custom Posts in a Page Template
- How can I show posts with the same tag?
- Where paramaters of a custom function are coming from inside the loop?