[wp-trac] Re: [WordPress Trac] #9230: Option to search for posts, pages or both

WordPress Trac wp-trac at lists.automattic.com
Thu Apr 30 17:46:46 GMT 2009


#9230: Option to search for posts, pages or both
-------------------------+--------------------------------------------------
 Reporter:  jidm         |       Owner:  anonymous                             
     Type:  enhancement  |      Status:  new                                   
 Priority:  low          |   Milestone:  Future Release                        
Component:  General      |     Version:                                        
 Severity:  minor        |    Keywords:  search options pages posts needs-patch
-------------------------+--------------------------------------------------
Changes (by jidm):

 * cc: jidm (added)


Comment:

 I tried to make it work by using the following hack before the have_posts
 call:

 {{{
 <?php $wp_query->set('post_type', 'post'); ?>
 }}}

 But nothing happened. Please consider having a look on it, as it doesn't
 seem to be hard work, and is a plus feature for a minority of users.

 Thanks!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9230#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list