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

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 11 17:27:50 GMT 2008


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

 Replying to [comment:12 Otto42]:
 > `if (get_post_type($post) == 'page') ...`
 >
 > I can see adding a get_the_post_type() function, because we're in the
 Loop, but not changing the nature of the is_page value.

 That is another workaround I thought of as well. I think I beginning to
 get what you mean by "but not changing the nature of the is_page value"

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


More information about the wp-trac mailing list