Forums

[resolved] Cutline - How To Display Post Author (7 posts)

  1. Anonymous
    Unregistered
    Posted 3 years ago #

    Hello,

    I have just started a blog using Cutline and when you make a post...it does not say who posted it. Anyone know how to fix this? Thanks!

    Blog is: http://www.TheRandomSchmooze.com

  2. drewsto
    Member
    Posted 3 years ago #

    I think you figured it out, but here it is if anyone else needs it.

    just add this little piece of code where ever you want it to display.

    <?php the_author_posts_link(); ?>

  3. Anonymous
    Unregistered
    Posted 3 years ago #

    I did figure it out. Thanks for the reply though!

  4. Kester
    Member
    Posted 3 years ago #

    Hmmm... sorry for being dumb, but not 'resolved' for me!

    I'm using Cutline 3 column, and want to add post author too - but not sure in which file to drop this piece of code. Further info and/or example would be much appreciated.

    Thanks.

  5. Kester
    Member
    Posted 3 years ago #

    Actually, just found Cutline-Chris' own answer:

    Author names are actually already coded into the Cutline framework, but I commented them out to keep them from displaying here. For people running single-author blogs, the name of the author is less important, so that’s why the default setting is to have the author’s name “hidden.”

    Anyway, to allow for author names to display, you’ll need to make a simple change to each of the following files:

    archive.php
    index.php
    search.php
    single.php
    In each file, the edit will be identical, and the line you want to edit begins with the following code:

    <h4><?php the_time('F jS, Y') ?><!–- by <?php the_author() ?> -–>

    Simply replace with:
    <h4><?php the_time('F jS, Y') ?> by <?php the_author() ?>
    and your author names will show up just beneath the post titles!

    Sweet.

  6. Duddha
    Member
    Posted 3 years ago #

    Just looked in both cutline 3 column split and 3 column right and both have the author thingy commented out.
    <!-- by <?php the_author() ?> -->
    So just go into the main index template editor uncommentate it(take the <!-- and --> out) pop in<?php the_author_posts_link(); ?>` and it should work.

  7. cmogle
    Member
    Posted 3 years ago #

    What about when the blog is hosted at wordpress.com and not self-hosted. How do you go about making the change then?

Topic Closed

This topic has been closed to new replies.

About this Topic