I originally set up my blog on v3.0.5 and everything worked just fine. I set up an is_page statement to be able to hide sidebar2 on pages and single posts which worked as expected. I updated to v3.1 about a week ago and today I added a new page, adding that page to the is_page array but sidebar2 is still being shown. I have tried simply using is_page() and even reversing the query using is_home() with the same result, the previous (aboutme) page and single posts hide sidebar2 but the newly created page (worldoflinks) does not hide sidebar2.
I used the following code in my site:
<?php if ( is_single() or is_page(array('aboutme', 'worldoflinks')) ) echo (''); else require ('wp-content/themes/myblog-online/ext_rss.php'); ?>
- The topic ‘is_page problem’ is closed to new replies.