Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

[SOLVED] How to Add Author Description to Page generated by "%author-posts-link%"

Prev Previous Post   Next Post Next
Old Dec 15, 2010, 02:45 AM
10 posts · Dec 2010
[SOLVED] How to Add Author Description to Page generated by "%author-posts-link%"

In my old theme, when you clicked on the Author's name in the byline, that took you to an "authors page" that had at the top the bio for the author and then a list of their posts. Not sure how I can do this with this theme. Any help appreciated.

The code in the old theme to grab the 'user_description' was:
PHP Code:
if(get_query_var('author_name')) :
$curauth get_user_by('slug'get_query_var('author_name'));
else :
$curauth get_userdata(get_query_var('author'));

<h3>About<?php echo $curauth->nickname?></h3>
        <dd><a href="<?php echo $curauth->user_url?>"><?php echo $curauth->user_url?></a></dd>
        <dd><?php echo $curauth->user_description?></dd>
  <h3>Posts by <?php echo $curauth->nickname?>:</h3>


        <?php if (have_posts()) : ?>

       <?php $post $posts[0]; // Hack. Set $post so that the_date() works. ?>
       <?php /* If this is a category archive */ if (is_category()) { ?>
        <h3 class="pagetitle">Archive for the <?php single_cat_title(); ?> Category</h3>
       <?php /* If this is a tag archive */ } elseif( is_tag() ) { ?>
        <h3 class="pagetitle">Posts Tagged <?php single_tag_title(); ?></h3>
       <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
        <h3 class="pagetitle">Archive for <?php the_time('F jS, Y'); ?></h3>
       <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
        <h3 class="pagetitle">Archive for <?php the_time('F, Y'); ?></h3>
       <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
        <h3 class="pagetitle">Archive for <?php the_time('Y'); ?></h3>
      <?php /* If this is an author archive */ } elseif (is_author()) { ?>
        <h3 class="pagetitle">Author Archive</h3>
       <?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
        <h3 class="pagetitle">Blog Archives</h3>
       <?php ?>

        <?php while (have_posts()) : the_post(); ?>
Appreciate any help on this please


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I add a "Back to top" link on the site? lmilesw Tips 0 Oct 25, 2010 12:52 PM
Styling %author% and %author-posts-link% Aris Post-Kicker, -Byline & -Footer 2 Jul 6, 2010 10:34 PM
[SOLVED] How to add additional link beside the &quot;home&quot; page above logo? cordi Other BFA WordPress Themes 2 Apr 8, 2010 11:21 AM
%author-linked% and "All posts by this author" David Latapie Post-Kicker, -Byline & -Footer 2 Nov 1, 2009 06:53 PM
[SOLVED] How to apply &quot;strong&quot; to the comments author name? wmoura Comments, trackbacks & pings 2 Jun 16, 2009 04:05 AM

All times are GMT -6. The time now is 04:00 AM.

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