• I need to display a specific bit of content in a sidebar block depending on what category the user is in. Is this possible?

    If I use a PAGE or POST item i dont want it to be linked anywhere either yanno? I want this to be Only available within the sidebar Only.

    THANKS for any help!!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • if ( have_posts() ) { the_post(); rewind_posts(); }
    if ( in_category(x) || in_category(y) ){
    	include(TEMPLATEPATH."/sidebar_special.php"); }

    Oh, and you’ll want to do that in single.php and category.php. If it’s only a single category that you want to change, you can also change category-x.php to only include a different sidebar there.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Page content in a sidebar’ is closed to new replies.