[resolved] is_page problem (2 posts)

  1. myownalias
    Posted 5 years ago #

    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');
  2. myownalias
    Posted 5 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.