Answer the question
In order to leave comments, you need to log in
How do I add a botstrap class to the wordpress loop so that each post wraps in the class I want to display as a grid???
This loop wraps all posts, and I need each post to wrap in <div class="col-md-4 d-flex ftco-animate">
and then in <div class="blog-entry justify-content-end">
Because they line up in a straight line, and not like a row
<?php get_header(); ?>
<div class="container">
<div class="row d-flex">
<div class="col-md-4 d-flex ftco-animate">
<div class="blog-entry justify-content-end">
<?php
if( have_posts() ){
while( have_posts() ){
the_post();
get_template_part( 'partials/post/content-excerpt' );
}
}
?>
</div>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>
Answer the question
In order to leave comments, you need to log in
Insert the desired template with the correct classes directly into the loop, or into the file that you think is the post template.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question