Display 4 Post per Row Issue
-
I have problem with Displaying posts per row by my own custom query. I used css classes of my current theme while everything is good with default theme grid displaying So i Use the exactly the same css classes to displaying posts with grid for my custom query but each post is displaying in 1 row !
This is my code
function mycustomquery(){ $args = array( 'post_type' => 'post', 'posts_per_page' => -1, 'meta_key' => 'car', 'meta_compare' => '>=', 'meta_value' => 'dodge', 'orderby' => 'rand', ); $query = new WP_Query($args); while($query -> have_posts()) : $query -> the_post(); ?> <div class="fw-container"> <div class="fw-row"> <div class="post col-md-12"> <div class="post_list post_columns_3"> <div class="post_inner"> <a href="<? the_permalink(); ?>"><? the_post_thumbnail('medium-thumbnail');?><?php the_title(); ?></a> </div> </div> </div> </div> </div>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Display 4 Post per Row Issue’ is closed to new replies.