Forums

Probably the dumbest question EVER. (10 posts)

  1. Crossroadsadmin
    Member
    Posted 2 years ago #

    I'm new to WP but have had nominal success. I'm using fSpring Widgets theme--everything looks great and works great.

    Except one thing.

    We have multiple contributors on our blog. I'm having a hell of a time trying to figure out how to get each post to read, "...posted by so-and-so" (and maybe even have a gravatar image there for each contributor). Is it a plugin that does the "posted by" bit on each post, or am I missing something from the admin end of things?

    I do have a dropdown window from which each user can select his username, but it doesn't show up on the post.

    Any help would be terrific. Any mocking of my incompetence would be just plain unnecessary.

  2. moshu
    Member
    Posted 2 years ago #

    Most themes take care of that by having the proper template tag in their code: http://codex.wordpress.org/Template_Tags#Author_tags
    namely http://codex.wordpress.org/Template_Tags/the_author

    Some themes have it but commented out, as in between
    <!-- tag here -->
    remove the comment if that's the case.
    Otherwise just insert the template tag where you want the name to appear.

  3. tomizzoorg
    Member
    Posted 2 years ago #

  4. Crossroadsadmin
    Member
    Posted 2 years ago #

    I think I've found where I need to put that tag. It's in the Main Index Template, right?

  5. moshu
    Member
    Posted 2 years ago #

    Main Index T. is your home/index/main page - whatever you call it.

    You'll definitely will want it in that template file, although depending on your needs it could be useful in other templates, too: single, archive.

  6. Crossroadsadmin
    Member
    Posted 2 years ago #

    Got it! It works. (Whew.)

    One other thing: how can I make the author's name bold and linked (clickable) to all posts written by him?

  7. Otto42
    Moderator
    Posted 2 years ago #

    Bold is just a matter of sticking in some bold tags around your template tag. The link is a different tag, listed at the same place as was given to you above: http://codex.wordpress.org/Template_Tags#Author_tags

    Try something similar to this:
    <strong><?php the_author_posts_link(); ?></strong>

  8. Crossroadsadmin
    Member
    Posted 2 years ago #

    You're all my heroes. Thanks so much.

    Otto42, I dropped in the links tag (without the bold) and I got this fatal error:

    Fatal error: Call to undefined function author_image_dimensions() in /home/.nikolas/chiladmin2/www.oregoncrossroads.org/wp-content/themes/fspring_widgets/author.php on line 16

    What happened?

  9. Crossroadsadmin
    Member
    Posted 2 years ago #

    I forgot to mention that this error happens when you click on the new author_posts_link.

  10. Otto42
    Moderator
    Posted 2 years ago #

    The "author.php" is part of your theme. It's the template file used for the author posts link. It's doing something weird, as author_image_dimensions() is not part of Wordpress. So I'd take it up with the theme author.

Topic Closed

This topic has been closed to new replies.

About this Topic