The template code is checking to see if the post type is post
, and only displaying the post meta information if that is true
:
if ( 'post' === get_post_type() ): ?>
Since the custom post type ngobin
is being viewed, the above check returns false
so the meta data is not displayed. The fix is as simple; change the post type check to ngobin
:
if ( 'ngobin' === get_post_type() ): ?>
<div class="post-details">
<i class="fa fa-user"></i><?php the_author(); ?>
<i class="fa fa-clock-o"></i> <time><?php the_time('m/j/y g:i A'); ?></time>
<i class="fa fa-folder"></i> <?php the_category(', ' ) ?>
<i class="fa fa-tags"></i> <?php the_tags(); ?>
<div class="post-comments-badge"><a href="https://wordpress.stackexchange.com/questions/254834/<?php comments_link(); ?>"><i class="fa fa-comments"></i><?php comments_number( 0, 1, '%' ); ?></a>
</div> <!-- post-comments-badge-->
<?php edit_post_link( 'Edit', '<i class="fa fa-pencil"></i>', '' ); ?>
</div>
</div>
<?php endif; ?>