WordPress.org

Support

Support » Requests and Feedback » Ability to add a “Posted by” under the article title

Ability to add a “Posted by” under the article title

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    ok, thanks 🙂

    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Ability to add a “Posted by” under the article title’ is closed to new replies.
Skip to toolbar