conditional elements showing in wrong location
-
I am attemtping to use a conditional statement to show more sidebar info if on a specific page.
<? if (is_page('updates') ) { get_sidebar(); } else {} ?>This is in a side bar div, on my header.php file.
its working. When on the updates page, it will get the sidebar.php.the issue is that it displays the sidebar.php in the post entry, not the sidebar div.
any way to do this better?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘conditional elements showing in wrong location’ is closed to new replies.