• zp1956

    (@zp1956)


    Hi,

    I couldn’t find option to display meta data on pages. There is option for enabling or disabling meta data on posts but not for pages

Viewing 1 replies (of 1 total)
  • Theme Author TT Themes

    (@tomastoman)

    Hi,

    by default, only posts are intended to show the meta data. If you need to show the meta data also on static pages, please search for the following code in “page.php”:

    <?php happenstance_get_display_image_page(); ?>

    and just under it put this code:

    <p class="post-meta">
          <span class="post-info-author vcard author"><i class="icon_pencil-edit" aria-hidden="true"></i><span class="fn"><?php the_author_posts_link(); ?></span></span>
          <span class="post-info-date post_date date updated"><i class="icon_clock_alt" aria-hidden="true"></i><?php echo get_the_date(); ?></span>
    <?php if ( comments_open() ) : ?>
          <span class="post-info-comments"><i class="icon_comment_alt" aria-hidden="true"></i><a href="<?php comments_link(); ?>"><?php printf( _n( '1 Comment', '%1$s Comments', get_comments_number(), 'happenstance' ), number_format_i18n( get_comments_number() ), get_the_title() ); ?></a></span>
    <?php endif; ?>
    </p>

    Best regards,
    Tomas Toman

Viewing 1 replies (of 1 total)
  • The topic ‘Display author and date on pages’ is closed to new replies.