Support » Fixing WordPress » is_page problem

  • Resolved myownalias


    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:

    if ( is_single() or is_page(array('aboutme', 'worldoflinks')) ) echo ('');
    	else require ('wp-content/themes/myblog-online/ext_rss.php');

Viewing 1 replies (of 1 total)
  • Never mind; I solved my own problem; I forgot that I created a separate template for pages and didn’t update that template in addition to the index template, hence the problem.

Viewing 1 replies (of 1 total)
  • The topic ‘is_page problem’ is closed to new replies.