WordPress.org

Ready to get started?Download WordPress

Forums

How to show archives/previous posts on post pages? (2 posts)

  1. redhalls
    Member
    Posted 5 years ago #

    Hi,

    On homepage there is previous post, archives, search box, etc but they do not appear on post pages... only on hompeage. I want them to appear on all my pages.

    How do I do it please?
    The blog url is http://loveforrockmusic.com

    I have wordpress default template.

    Thanks,
    Karl

  2. MichaelH
    Member
    Posted 5 years ago #

    This search:
    http://wordpress.org/search/sidebar+on+pages+in+default+theme?forums=1

    found, among others, this:
    http://wordpress.org/support/topic/152249?replies=5

    Essentially you change the wp-content/themes/default/single.php file to display the sidebar:
    Add this line:

    <?php get_sidebar(); ?>

    right before this line:

    <?php get_footer(); ?>
    ------

    and change this line from:

    <div id="content" class="widecolumn">

    to this:

    <div id="content" class="narrowcolumn">

Topic Closed

This topic has been closed to new replies.

About this Topic