is_page not working
-
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php if (!is_page('57') && !is_page('61') && !is_page('59')){ ?> <div style="text-align: left;"><h1><?php the_title(); ?></h1></div><br /> <?php } else { ?> <div style="text-align: right;"><h1><?php the_title(); ?></h1></div><br /> <? } ?>
Shouldn’t this work? is there anything wrong with the code?
Whenever I goto page id(61) the title is being displayed on the right instead of the left. :\
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘is_page not working’ is closed to new replies.