Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to create a custom post type with fields: Text1, text2 and text3.

I want to make this custom post type searchable.

But searchable fields will only be Text1, and text2.

Is this possible?

Thanks

share|improve this question

1 Answer 1

With WP's default search - no.

But you can with this plugin. Select "Lucene" or "Mysql Fulltext" (Zend Lucene is a little faster) as the search engine, check the "post meta" module and select the meta fields you want to search in the module settings. Then re-index

You'll also have to edit the models/spider.php from the plugin dir to include custom post types - Search for instances of {$wpdb->posts}.post_type and add the appropriate custom post type slug there...

share|improve this answer
    
great, I ll try search unleashed. –  p.a. Sep 7 '11 at 14:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.