Use something like this for each column.
<!-- custom field = 'normal' -->
<div class="span2 normal">
<?php
// The Query
$the_query = new WP_Query(
array(
'meta_key' => 'your_custom_field_name',
'meta_value' => 'normal'
);
// The Loop
while ( $the_query->have_posts() ) : $the_query->the_post();
echo '<div class="post">
<h1>' . get_the_title() . '</h1>
</div>';
endwhile;
// Reset Post Data
wp_reset_postdata();
?>
</div>
Then follow the infinite scroll instructions found here.
Related Posts:
- Get post content from outside the loop
- How to split a loop into multiple columns
- Is it necessary to reset the query after using get_posts()?
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Cleanest Way to Select Every Second Element in a Loop?
- How to Change Loop to Order Posts by Views (using wp-postviews plugin)
- Get post by page name or slug
- save_post + insert_post = infinite loop
- Is `query_posts` really slower than secondary query?
- Are there any scenarios where the query_posts may be used?
- ACF Repeater loops and resets – where is the reset_rows() documentation? [closed]
- Display subpages under parent page as a list within a loop
- When to use wp_reset_postdata();
- Why do themes have `while( have_posts() )` in templates like single.php?
- What is best way passing variables to theme templates and using them different places like widgets?
- Apply styling only to first page sticky posts
- Related Posts loop – offset
- Too many nested wp_query loops in this hypothetical query?
- pop-up lighbox with AJAX
- Showing current subcategory
- Display date only once for a each set of posts relating to that date
- Load comments per post on click with AJAX
- WordPress Loop – Style rows of posts differently
- Generating dynamic Tabs with multiple query post loop
- How do I override part of the main loop in my child theme?
- connect last post with first post
- Combining the_excerpt with the_content
- taxonomy tags 404 to custom post types
- Breaking the loop?
- Only display videos and images in the_content() within loop
- Get search.php results in header.php?
- Recent posts on a static home page
- Query last updated posts (posts updated in the last 24 hours)
- I write simple wordpress loop for taxonomy.php file but don’t show result
- A smarter way to display multiple loops inside a page template
- Publish Categories for a particular Author on a given Post
- How to print out menu names in the foreach loop?
- How do I style the first two posts of a loop
- How to get the role id from the role name?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- How to hook into container
- How to add a specific div element to the first post in a row?
- How to create a multidimensional array with multiple loops
- What PHP Needed to Make One Loop with Multiple Styling?
- Simple foreach loop help needed in wordpress “the loop”
- Get paged outside of loop?
- How to create custom popup in shop page on every loop products?
- Show scheduled posts in loop (but don’t link to them)?
- How to get a count of all posts in foreach loop and split into fourths
- Getting posts link in WordPress
- Loop through an array inside a class using foreach [closed]
- using wp_get_attachment_image_src in foreach loop
- How to loop through yoast primary categories? [closed]
- WordPress get post thumbnail url
- query_posts clarification needed
- Three Column Loop
- Split loop into columns
- get_posts() forcing ignore sticky posts on main loop
- display post tags on single.php inside loop
- Custom content before post content
- Can’t get the previous and next posts permalink
- Adding first and last classes to three column layout in Bones boilerplate
- make diffrent template on last six post published
- Modifying a Loop to Show More
- Does search.php autofilter The Loop?
- “the_excerpt” in loop just keeps repeating first post?
- wpdb inside foreach loop only returns first result – 2 other similar cases found [closed]
- Using jQuery .after inside loop
- How to check all items in a loop have post thumbnail?
- Add 2 values to post__not_in
- How to make the following loop break/stop when it reaches 2 posts (custom post types called Topics)?
- How to display post tag on each post? [closed]
- How can I pass additional params to a shortcode while in a loop?
- ACF: display custom filed of CPT into the loop
- Solved – Inserting content inside the WordPress loop
- Add Search and Filter functionality to custom loop
- How to add “NEW” badge on latest posts or published 3 days interval
- Add all category as classes in foreach loop
- How to avoid appending “null” in Ajax?
- Show posts by tags excluding current post
- Adding options to loop
- Featured posts and the loop
- How to fix pagination for custom loops?
- Thumbnail of the latest posts page
- Display latest posts using WP Loop with different size divs
- Combining external feed into post loop
- Get last 5 days with posts
- Is there a way to target only images within the loop?
- Code to check amount of blog posts and add css
- Loop to get current parent page “content” and his children content
- Displaying posts limit: can’t get pagination to display [duplicate]
- Show last post from multiple categories using wp_list_categories
- Load featured article once in a loop
- Please help me to win the battle with 2 column loop by category
- Display content from “About Us” page on the Home Page
- How to use add_action(“wpcf7_before_send_mail” outside wp loop?
- Applying a filter to multiple loops for days ago
- repeating posts on 2nd page to posts
- Limitless amount of posts in custom archive page
- wp_mail function not working in user query loop