WordPress.org

Ready to get started?Download WordPress

Forums

Author infos in sidebar: Display always the same author (2 posts)

  1. antomio
    Member
    Posted 2 years ago #

    Hello!
    I know that a lot of people wrote this question but I really can't fix my problem reading other posts on this forum.
    I'd like to insert author infos in sidebar. Here's the code I'm using:

    <?php
    global $posts;
    $author_id=$posts->post_author;
    $nickname='nickname';
    echo the_author_meta( $nickname, $author_id );
    ?>

    This doesn't work properly: it display always the same author. How can I fix it? Do you have an idea?

    Thanks
    Bye

  2. antomio
    Member
    Posted 2 years ago #

    up

Topic Closed

This topic has been closed to new replies.

About this Topic