WordPress.org

Support

Support » How-To and Troubleshooting » Showing Author's post in author's bio page sidebar

Showing Author's post in author's bio page sidebar

Viewing 2 replies - 1 through 2 (of 2 total)
  • You have to use a loop on the sidebar. Paste the following on the sidebar

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<?php the_author_description(); ?> <!--display author description -->
    
    <?php endwhile; else: ?>
    <?php endif; ?>
    <?php  wp_reset_query(); ?> <!--Reset wordpress query -->

    If you need custom field for author bio check here

    Thank you, but I’m not sure if you understood. These are bio PAGES, not POSTS, where the sidebar should show the most recent 5 posts from the author that is being talked about on the bio page. It looks like the code above will show the author’s bio, which is not what I need. Any further ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Showing Author's post in author's bio page sidebar’ is closed to new replies.
Skip to toolbar