Thread Starter
bk
(@bk)
Hmm… okay. I’m kinda getting this. Sounds pretty easy.
But where do I have to enter these tags?
Do I have to use the code posted in Variable Sidebar Content? Replace it with my current code in sidebar.php?
Thread Starter
bk
(@bk)
So, am I, right or wrong?
Well, I did the same thing and I spelled out how to do it here. That might help.
Thread Starter
bk
(@bk)
But this works with only categories, right? Not pages?
Thread Starter
bk
(@bk)
<?php
$post = $wp_query->post;
if ( in_page('9') ) {
include(TEMPLATEPATH . '/sidebar_portfolio.php');
elseif ( in_page('10') ) {
include(TEMPLATEPATH . '/sidebar_archives.php');
elseif ( in_page('12') ) {
include(TEMPLATEPATH . '/sidebar_about.php');
} else {
include(TEMPLATEPATH . '/sidebar_normal.php');
}
?>
That’s what I am putting. Is it right?
Thread Starter
bk
(@bk)
I think I got it working. 🙂