WordPress.org

Ready to get started?Download WordPress

Forums

Best practice for displaying different sidebars based on page/subpage (3 posts)

  1. Seth Stevenson
    Member
    Posted 3 years ago #

    I'm just curious what the best way is to display multiple sidebars (widget areas) based upon what page you're viewing. I would like to have one sidebar show up for one page and all of it's subpages and a different subpage for another page and subpages and so on.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    You could use custom page templates, the is_page_template() conditional and a number of different sidebars called appropriately using get_sidebar.

  3. Ray Doniel
    Member
    Posted 2 years ago #

    what about if I want to use the same page template but use the page ID to call different sidebars.
    Also for the subpages for those pages.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.