[wp-trac] [WordPress Trac] #7533: is_page() Returns false Always In
Search Results
WordPress Trac
wp-trac at lists.automattic.com
Sun Aug 17 12:04:52 GMT 2008
#7533: is_page() Returns false Always In Search Results
----------------------+-----------------------------------------------------
Reporter: GamerZ | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.6.2
Component: Template | Version: 2.6.1
Severity: trivial | Keywords: is_home, home
----------------------+-----------------------------------------------------
In the Default Theme search.php, if you do a
{{{
#!php
<?php var_dump(is_page()); ?>
}}}
after
{{{
#!php
<?php while (have_posts()) : the_post(); ?>
}}}
It always returns false even the results return is a page and not a post.
--
Ticket URL: <http://trac.wordpress.org/ticket/7533>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list