Support » Plugin: WP Custom Fields Search » [Plugin: WP Custom Fields Search] Not searching custom post types

Viewing 7 replies - 1 through 7 (of 7 total)
  • Same here! Totally kills it. All my custom fields are in custom post types. Someone’s got to have a solution for this.

    Otherwise, this plugin is awesome, but without custom post type compatibility, I can’t use it 🙁

    +1 I think it’s better to do it manually. This plugin does not have an upgrade since 2 years now 🙁

    Not sure if this would work but through another thread, someone is trying to search only custom post types. A simple solution is to add a hidden field to the form.

    If this could be added to the form (inside the plugin) maybe it would work:

    This post has the discussion.

    i tried that post above and added the hidden value (<input type=”hidden” name=”post_type” value=”post type name” />) into the plugin code where it outputs the search form. it didn’t work for me.

    got it to work! in “extra_search_fields.php” you just need to throw in the custom post type name pretty much anywhere it says ‘post_type’



    sounds good, i’ll give this a whirl – got a customer product dbase coming up… Thanks iblastoff

    @iblastoff – ABSOLUTE LEGEND!

    Just to clarify, there’s only a couple of lines you need to change. Just make a search for “post_type” and you’ll get around 5 results.

    You just need to change this bit:


    for this:


    Once you’ve done that:

    1. Go to the plugin settings and create a new field.
    2. Label: Give it a name (ie. Post Type).
    3. Data type: Choose Post Type
    4. Widget: Hidden Constant
    5. Widget config > Value: the_name_of_your_post_type

    That’s all!


Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: WP Custom Fields Search] Not searching custom post types’ is closed to new replies.