DevDmBootstrap4

Twitter Bootstrap 4 WordPress Starter Theme for Developers

Theme File: postmeta-header.php

Name: postmeta-header.php

Path: devdmbootstrap4/template-parts/postmeta-header.php

Source: https://github.com/dannymachal/devdmbootstrap4/blob/master/template-parts/postmeta-header.php

A template part used in our main post loops: index.php, archive.php and single.php. We bring in the date posted, the author and a comment count.

<div class="dmbs-post-meta-header">

    <div class="row">

        <div class="col-sm-8">
            <span class="dmbs-post-date"><span class="fa fa-calendar"></span> <?php the_time('F jS, Y'); ?></span> <span class="fa fa-user"></span> <span class="dmbs-post-author"><?php the_author_posts_link(); ?></span>
        </div>

        <?php  if ( comments_open() ) : ?>
            <div class="col-sm-4 dmbs-post-comment-counter">
                <a href="<?php esc_url( the_permalink() ); ?>#comments"><span class="fa fa-comment"></span>  <?php comments_number('0 ' . __('Comments','devdmbootstrap4'), '1 ' . __('Comment','devdmbootstrap4'), '%' . __(' Comments','devdmbootstrap4') );?></a>
            </div>
        <?php endif; ?>

    </div>

</div>