• I know this has been asked over and over again, but after searching results, I still couldn’t find anything that works.

    I have multiple contributors on Devlounge, and in the sidebar of each news post, I wanted to include the author name and bio from the profile section, pulled automatically depending on who wrote the article. Because it is outside loop, it makes it even more difficult.

    Was a solution to this ever solved?
    Please respond asap, my site redeisgn launch is in a few days!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter astereo

    (@astereo)

    bump

    Thread Starter astereo

    (@astereo)

    final bump, i need to get this done

    This is one thing I am planning to do, I haven’t started looking at solutions yet, but there does seem to be a fair amount of info out there for this.

    I’ll see if I can figure it out, post response back here, but it’ll take me a few days.

    Thread Starter astereo

    (@astereo)

    Alright, thanks 🙂

    This is how I do it:

    <?php /* If this is a single post page */ if (is_single()) { ?>

    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <div id="authordesc">
    <h2>About the Author</h2>
    <?php c2c_the_author_image(); ?>
    <?php echo apply_filters('the_content', get_the_author_description()); ?>

    Contact <?php the_author_firstname(); ?> via email <a>">here</a> or visit <?php the_author_firstname(); ?> online <a>">here</a>.
    </div>
    <?php endwhile; endif; ?>

    Result is here.

    Best – Michael

    Michael,
    I made the code “visible” by applying the backticks (not the same as apostrophe!) – but seemingly some of the anchor stuff disappeared… Sorry.
    Could you add what is missing? Thanks.

    Here’s an even shorter version. Notice I also have the author image in there. That’s done with the author image plugin here.

    <?php /* If this is a single post page */ if (is_single()) { ?>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    <h2>By <?php the_author_firstname(); ?> <?php the_author_lastname(); ?></h2>
    <p><?php c2c_the_author_image(); ?></p>
    <div class="authordesc">
    <?php echo apply_filters('the_content', get_the_author_description()); ?>
    <?php endwhile; endif; ?>
    </div>

    Any help getting this plugin to work in WP 2.0+ there are fields in the php that arent in the databse for versions newer that 1.5. If I could get it to work it would be a great plugin………

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Author info in sidebar, ASAP’ is closed to new replies.