• Resolved romeon

    (@romeon)


    Hey everyone. I am trying to set so that my pages displays titles for only some pages.

    I have a product line that starts with “I love”. My first question is, can i make it so that it displays what i want (or not want) on every page that starts with “I love” ? That would be the best since I add new things all the time.

    However, I am trying a !is_page and i can’t get it to work. Tried many different variations. Either it wont work at all, works only on the first page or works on everypage (regardless which).

    Here is the code:

    <?php if (!is_page('14, 4, 16 , 20, 27, 29, 31, 18, 22, 25')) : ?>
    
    <div class="title">
    	<h1><?php the_title(); ?></h1>
    </div>
         <?php endif; ?>

    I tried it without the ” before the 14 and after the 25.. Wont work.. This particular code makes it happen for the page 14, but the rest stays as they are..

    Any ideas what might be wrong? I tried todo it like this as well: !is_page(xx) || !is_page(xx)… And so on.. Didn’t work either. I’m clueless.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Conditional tag !is_page (x,x,x,x,x,x) is not working.’ is closed to new replies.