[wp-trac] Re: [WordPress Trac] #7533: is_page() Returns false
Always In Search Results
WordPress Trac
wp-trac at lists.automattic.com
Tue Aug 19 05:57:32 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 | Resolution:
Keywords: is_home, home |
---------------------------+------------------------------------------------
Comment (by GamerZ):
Search results might include pages which is right, but within the
search.php WP loop, how do u tell apart a page from a post? is_search()
will definitely return true as it is a search page.
--
Ticket URL: <http://trac.wordpress.org/ticket/7533#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list