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:
- Pagination not working with custom loop
- Have different number of posts on first page
- Display all posts starting with given letter?
- wp_pagenavi() with custom wp_query()?
- List all posts commented by current user
- how do I group content in magazine-style ‘issues’?
- How to query custom posts using a dynamic category
- WordPress “Loop” with large set of results
- List events by month
- WP_Query on custom post type not displaying, multiple loops & get_template_part
- Conditional two level dropdown filter for custom post type
- Custom post type loops with different page templates
- How to create posts (not post template) to be displayed on projects page?
- Custom Post Loop in Archive returns same the_permalink
- WP_Query post at custom position
- Should unaltered default loop/query return a list of custom posts belonging to a custom taxonomy?
- 404 error PageNavi custom type taxonomy | wordpress
- Query for posts in 2 taxonomies
- Pagination with custom post types results in 404 issues
- IF statement in a do_shortcode
- List posts AND custom post type by category
- How to dynamically build a multiple taxonomy query loop within a post type’s single loop?
- How to check if “is single” page
- wp_query to find posts by year and month
- Loop of custom post type names
- Using pre_get_posts to filter one loop in a multiloop archive
- Custom Post Type Loop within Shortcode
- Very Slow Page – How to Optimize # of Queries?
- Display CPT posts based on specific taxonomy
- WordPress Genesis custom taxonomy archive shows 3 repeats of each post
- Meta Key Value in current-user-only loop
- CPT + CMB2: data not displaying for only first post in loop
- Loop custom taxonomy to get lists of cutom post types?
- Custom post type not displaying content from single-{custom post type} page
- Show a Category X’s custom post type on Category X archive page?
- Sort by alphabetical order archive.php page
- Display all taxonomy terms, add class if term applies to current post
- A to Z List of Custom Post Type in three columns
- Post ID randomly printing on page
- Displaying Custom Posts on a Page
- How do I know the ‘meta_key’ for ordering my custom post type
- Custom Post Type Category Link
- Custom Post type category pages template and loop
- Three Most Recent Posts, One Per Term
- Custom Post Loop pulling all custom posts, not just one
- Wrapping x posts in html without leaving empty html
- Sort posts in loop by the WooCommerce Membership of the author
- Loop increase number
- Custom post type showing same Post on all Pages
- Move Genesis Single Page/Single Post Title
- get parent content inside child posts
- Post loop count is not in order
- hide specific div on single.php [closed]
- Looping Through Categories of a CPT
- How do you output an unknown number of images in a custom post type with desired markup?
- Get data from PHP to JavaScript to set position of each post on front page
- Assign a template to a custom post type when displayed by the main loop on the home page
- Custom Post Type and Taxonomy Loop Output Is Wrong
- The loop does not show users
- Displaying information from custom field on custom post type
- Display only a single CPT
- Control Loop Within Loop
- Cant’ Display Custom Post Type Title Base on Tax Terms
- How do I enforce a specific custom post type on the loop
- CPT archive page – show one post from each taxonomy term
- How do I list a custom field and custom taxonomies for each result in a loop?
- If/Else child list for Custom Post Type single template within loop?
- Show the categories the current post has
- Pagination not working in custom post type. Help
- Show custom post type event if current day using ACF
- How to create an IF statement in the Main Loop for Custom Post Types
- Custom meta fields not showing up in WP_Response Object via custom endpoint
- How to output and alert message when updating a post
- Loop (for search results) returning right posts, but wrong post type
- WordPress trying to query two custom types to get child from the parent
- Display title of all custom posts from same taxonomy term on a custom post template
- get_permalink() of page the enclosing page not posts
- Custom post type loop without children
- How to display user-defined / custom post in wordpress?
- WordPress query in which condition uses custom field
- Error in WP Query. If variable is empty it is displaying previous post value
- Looping through custom taxonomy in one template
- get_post_meta for Custom Post Type ( CPT )
- How to keep a CPT stick to specific position?
- Is it possible to add query parameters on the archive page?
- Custom post type archive pagination with HTML5Blank theme?
- WordPress loop for multiple custom post types
- How can I pull information from my loop and divide them seperately?
- Pagination not working with custom loop
- Fallback if statement based on the number filtered from it
- Turn post into simple slideshow
- Create custom post order (with custom post type meta)
- Pagination not working with custom loop
- Noob Loop Question
- Custom Post Types and 404 Pages
- Fourth page of custom post type archive page does not exist
- show custom post’s post in two different divs [duplicate]
- Limit wordpress posts loop to continue onto another page
- Unable to display paging navigation with a custom post type loop
- Best practice to display a list/archive of Custom Posts in a Page Template