is_page() not working
-
Hey all,
I can’t seem to get this code to work and I was curious is anyone could see anything wrong with it?
This is a template that is activated on several pages within my install and the code is supposed to check what page is being viewed and then apply the proper code. As of now, I can’t even get it to recognize that it’s a page at all!
<?php /** * Template Name: Aux Page * * * @package WordPress * @subpackage ADMS * @since ADMS */ get_header(); ?> <div id="main-content"> <!-- IF CONTACT PAGE --> <!-- IF CUSTOMER LIST PAGE --> <!-- IF FUNDING AND GRANTS PAGE --> <!-- IF PRESS RELEASES PAGE --> <?php if (is_page() ) { ?> <h1>THIS IS A PAGE</h1> <?php }?> <!-- IF TRADE SHOWS PAGE --> </div> <div class="clear"></div> <?php get_footer(); ?>
Any help would be appreciated.
–nks
- The topic ‘is_page() not working’ is closed to new replies.