• Resolved hubber47

    (@hubber47)


    Hi there,

    I am looking to develop a multi-author site. The hueman theme is the perfect magazine-style format I’m looking for.

    I’m wondering if it would be possible to make the name of each posts’ author more visible on the blog home-page, category archive pages etc… either by adding the author name to the post meta data along with the category, title and date…or by incorporating the author name alongside (maybe within?) the post excerpt, like here… https://www.theguardian.com/uk/commentisfree

    Also, is it possible for the author name be added to the AlxTabs widget…category, title, date AND author…?

    Appreciate any thoughts/help.

    Thanks,
    Mark

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi hubber. This should add the Author to your home/archive/etc. posts:

    1. copy content.php and content-featured.php from the parent theme to your child theme.

    2. In both of those files, in the post-meta-group container, add the line for the author:

    <div class="post-meta group">
       <p class="post-category"><?php the_category(' / '); ?></p>
       <p class="post-date"><?php the_time('j M, Y'); ?></p>
       <p class="post-author"> &nbsp;&middot; <?php _e('by','hueman'); ?> <?php the_author_posts_link(); ?></p>
    </div><!--/.post-meta-->

    To add the author to the widget posts, see this pastebin code. Hope that helps.

    Thread Starter hubber47

    (@hubber47)

    bdbrown,
    Thank you so much. That works perfectly.
    I really appreciate the time and effort you’ve went to in providing not only the solution but such clear, easy-to-follow guidance.
    Help like this is so invaluable to newbies like myself.
    Thanks again,
    Mark

    You’re most welcome. Glad I could help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Adding author name to post meta data’ is closed to new replies.