Title: jidm's Replies | WordPress.org

---

# jidm

  [  ](https://wordpress.org/support/users/jidm/)

 *   [Profile](https://wordpress.org/support/users/jidm/)
 *   [Topics Started](https://wordpress.org/support/users/jidm/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jidm/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jidm/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jidm/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jidm/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jidm/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WP Category from Permalink?](https://wordpress.org/support/topic/wp-category-from-permalink/)
 *  [jidm](https://wordpress.org/support/users/jidm/)
 * (@jidm)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/wp-category-from-permalink/#post-828461)
 * Looking for the same aswer. Couldn’t find anything throught the documentation
   nor the forums.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible? Search only posts, exclude pages](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/)
 *  [jidm](https://wordpress.org/support/users/jidm/)
 * (@jidm)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/#post-861791)
 * Tried with
    <?php $wp_query->set(‘post_type’, ‘post’); ?> Before have_posts(),
   tried it on header.php, but didn’t work either. (thanks to [maymaym](http://identi.ca/notice/2113737))
 * Maybe there is something wrong (or to-do) on the code.
    Maybe some crew can check
   for it for future versions.
 * ftr, im trying it on a wpmu 2.6 installation.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible? Search only posts, exclude pages](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/)
 *  [jidm](https://wordpress.org/support/users/jidm/)
 * (@jidm)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/#post-861790)
 * I made it work by changing the file:
    wp-includes/query.php When it says: (line
   836 on a wpmu 2.6) $q[‘post_type’] = ‘any’; It should say $q[‘post_type’] = ‘
   post’;
 * Wondering if there is a way to do this by not editing this file. I mean by using
   a wp hack in the header, or in the search template. if anyone knows the proper
   way to do it, please tell me here.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Possible? Search only posts, exclude pages](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/)
 *  [jidm](https://wordpress.org/support/users/jidm/)
 * (@jidm)
 * [17 years, 3 months ago](https://wordpress.org/support/topic/possible-search-only-posts-exclude-pages/#post-861787)
 * I am looking for the same feature, and also found nothing. Please any info would
   be helpful. (even a hard-coding hack if no other way possible) Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)