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.
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.
tomizzoorg
Member
Posted 2 years ago #
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?
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.
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?
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>
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?
Crossroadsadmin
Member
Posted 2 years ago #
I forgot to mention that this error happens when you click on the new author_posts_link.
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.