Sidebar not working (is_page)
-
Hey folks,
I got the following code in my sidebar.php:if (is_page('home')) (!function_exists('dynamic_sidebar') || !dynamic_sidebar(2)); elseif (is_page('news')) (!function_exists('dynamic_sidebar') || !dynamic_sidebar(3)); else (!function_exists('dynamic_sidebar') || !dynamic_sidebar(1));
Sidebar 2 is displayed on the index page, sidebar 1 is displayed on all pages.
But on the news page the default sidebar (1) is displayed instead of sidebar 2. Why?
My index page shows a “page” (home) and my articles (the blog) is displayed on the page “news”.
Sincerely,
Ben
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Sidebar not working (is_page)’ is closed to new replies.