WordPress.org

Forums

Display 2 different sidebars (2 posts)

  1. amplifiedshock
    Member
    Posted 7 years ago #

    Greetings. I have a WordPress blog and two different sidebars - sidebar.php and sidebar2.php.

    Currently, the same sidebar is displayed on both the index page and the single post page. How do I display sidebar.php for the index page and sidebar2.php for the single post page?

    Thanks.

  2. Alex Cragg
    Member
    Posted 7 years ago #

    have a look at is_single and include

Topic Closed

This topic has been closed to new replies.

About this Topic