Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   Listing Authors in Sidebar (http://forum.bytesforall.com/showthread.php?t=138)

jdittert Jan 29, 2009 09:35 PM

Listing Authors in Sidebar
I'm starting a multi-author blog with this theme, and I would like to have a list of authors (with links to their profile pages) in the sidebar. I would also like each article to contain "by soandso" at the top with a link to their profile page. Essentially, I want it to act like this blog: http://www.musicteachershelper.com/blog

Is there a way to do this easily with this theme?. Also, is there a way to get "by soandso" to show up on posts but not on pages?

Flynn Jan 30, 2009 06:44 AM

The "by soandso" part can be configured extensively (incl. differently for posts and pages) at Atahualpa Theme Options -> Post/Page Info Items

Re: authors in sidebar:

In header.php (for the left sidebar) or footer.php (for the right sidebar), find this:

PHP Code:

if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : 

(the number in there will be "2" for right sidebar)

and put this right after it

PHP Code:

<div class="widget">
<div class="widget-title"><h3>Authors</h3></div>
<div class="widget-content">
<?php wp_list_authors(); ?>

If you don't want to show a widget title, use this instead

PHP Code:

<div class="widget">
<div class="widget-content">
<?php wp_list_authors(); ?>

See http://codex.wordpress.org/Template_...p_list_authors for output options, i.e. whether to show the amount of published posts each author has.

jdittert Jan 30, 2009 09:36 AM

Thanks a lot Flynn!

nikkidev Jun 25, 2009 01:15 PM

Hi Flynn. I'm using Athahualpa 3.3.3 and have tried adding the code to list authors immediately after the ':' of
'if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(1) ) : ' statement but this results in an Internal Server Error. If I put the code after the 'endif; ?>', I get the list of authors but with normal round bullet points instead of the rectangular styled ones of the theme and the list isn't indented to match the widgets in that sidebar. I would also like to have control over where the author list appears in relation to other widgets in the sidebar.
Sorry if I'm missing the obvious.

frankiben123 Jun 26, 2009 01:24 AM

thanks for the post......

All times are GMT -6. The time now is 08:19 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.