WordPress.org

Ready to get started?Download WordPress

Forums

Ability to add a "Posted by" under the article title (4 posts)

  1. Frostyfrog
    Member
    Posted 5 years ago #

    Hi, I would like this feture to be added becuase some blogs (like mine) have multiple Authors. I haven't found anything else about this so I'm requesting it to be like an official feature (toggle able of course). It would look something like this:

    Posted by %username% on %date% in %category%

    Thanks.

  2. ClaytonJames
    Member
    Posted 5 years ago #

    I think that is something that is either included in a theme in various forms as a feature, or it isn't. Here is a rough example that does just what you state.

    <a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
      <p> Posted by <?php the_author_posts_link(); ?> on <?php the_time('M.d, Y') ?>, under <?php the_category(', '); ?></p>

    ...classes/styling are left up to the theme author.

    I don't know if anyone has created a plugin for that or not.

  3. Frostyfrog
    Member
    Posted 5 years ago #

    ok, thanks :)

  4. brownkidd
    Member
    Posted 5 years ago #

    Another suggestion is to display the author's bio like this

    <?php the_author_description(); ?>

    and even have their contact info if you'd want.

    <a href="mailto:<?php the_author_email(); ?>" title="Email this author">Email this author</a>

    there's also a nifty trick for posting their picture. I junt named the .jpgs everyone's last name so the code would look like this.

    <img src="<?php echo get_option('home'); ?>/wp-content/images/<?php the_author_lastname(); ?>.jpg" alt="" />

    Hope it helps!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.