Md Mehedi Hasan

have_posts() | the_post() | the_title() | the_permalink() | has_post_thumbnail | the_post_thumbnail | the_excerpt() | the_author_posts_link() | the_date()

<?php 
while (have_posts()):
    the_post();?>
    <div <?php post_class(); ?>>>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
               <a href="<?php the_permalink();?>"><h2 class="post-title"><?php the_title(); ?></h2></a>
            </div>
            
        </div>
        <div class="row">
            <div class="col-md-4">
                <p>
                    <strong><?php the_author_posts_link(); ?></strong><br/>
                    <?php the_date(); ?>
                </p>
                
                <?php the_tags( '<ul class="list-unstyled"><li>', '</li><li>', '</li></ul>' ); ?>
            </div>
            <div class="col-md-8">
                <?php 
                if(has_post_thumbnail()){
                    the_post_thumbnail("large", array("class"=>"img-fluid"));
                }

                the_excerpt();
                ?>
            </div>
        </div>
    </div>
</div>

<?php endwhile;?>