• crossroadsadmin

    (@crossroadsadmin)


    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • moshu

    (@moshu)

    Most themes take care of that by having the proper template tag in their code: https://codex.www.ads-software.com/Template_Tags#Author_tags
    namely https://codex.www.ads-software.com/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.

    tomizzoorg

    (@tomizzoorg)

    Thread Starter crossroadsadmin

    (@crossroadsadmin)

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

    moshu

    (@moshu)

    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.

    Thread Starter crossroadsadmin

    (@crossroadsadmin)

    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?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    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: https://codex.www.ads-software.com/Template_Tags#Author_tags

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

    Thread Starter crossroadsadmin

    (@crossroadsadmin)

    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?

    Thread Starter crossroadsadmin

    (@crossroadsadmin)

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

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    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.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Probably the dumbest question EVER.’ is closed to new replies.