• I’m looking for a solution that I haven’t found on the forums or in other plugins:

    I’d like to have different subnav on each “page” of my site. For instance, on the contact page – the sidebar would have an address, email, number, etc., or on the products page, there would be links to the specific products. I tried the NAVT plugin (http://www.gbellucci.us/?p=450), but it stopped just short of letting me choose what content to show on what page. Hope this makes sense!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yeah. I’d like an easier way to do this too.

    Currently I do it by assigning each page that I want to have a different sidebar its own template, and then hacking sidebar.php so that it uses php to choose which nav stuff to display based on a variable that I set in the template.

    Means you need a different template for each thing, though.

    Thread Starter abelcreative

    (@abelcreative)

    Found my solution:
    http://codex.wordpress.org/Conditional_Tags#Variable_Sidebar_Content

    I’d still like to be able to actually control the content from withing the admin area (so I don’t always have to edit the sidebar.php file when I want to make a change)

    Me too! This is the last roadblock to being able to convert our existing site over to WP. It seems like such a logical thing to do: be able to control and administer which links appear on which pages. I’m going to check out the solution above, hopefully it can work for me too!

    Ok… unfortunately I am not bright enough to figure out where I am supposed to place that code so it will work. Any hints?

    If you are talking about the sidebar… then obviously you should edit your theme’s sidebar.php template file.

    right, managed to figure that out eventually, now my problem is that I don’t really see how this conditional code is supposed to match up or integrate with the existing code in there. Is it just supposed to replace it altogether? Right now there is no <div id=”sidebar”> in the sidebar.php, so I can’t find a reference point.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Different sidbar items per page’ is closed to new replies.