[wp-trac] Re: [WordPress Trac] #7533: is_page() Returns false Always In Search Results

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 18 00:09:22 GMT 2008


#7533: is_page() Returns false Always In Search Results
-----------------------------------------+----------------------------------
 Reporter:  GamerZ                       |        Owner:  anonymous
     Type:  defect                       |       Status:  closed   
 Priority:  high                         |    Milestone:  2.7      
Component:  Template                     |      Version:  2.6.1    
 Severity:  trivial                      |   Resolution:  wontfix  
 Keywords:  is_home, home, dev-feedback  |  
-----------------------------------------+----------------------------------
Changes (by azaozz):

  * status:  new => closed
  * resolution:  => wontfix

Comment:

 The is_page() returns true only when a single page is displayed (as it
 should be). When need to determine the post type of each search result,
 get_post_type($post) can be used in the loop, as Otto42 points out.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/7533#comment:14>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list