WP Custom Fields Search
[resolved] search on custom fields only (2 posts)

  1. ebenezer357
    Posted 2 years ago #

    Hi, i need the Auto complete and the Search results of this plugin to show only the custom post type i have made called CATALOGO. How can i do this?

    Someone please help! I have been trying to figure this out for months



  2. don benjamin
    Plugin Author

    Posted 2 years ago #


    To restrict the search results add a new search field to your form, make the data type "Post Type", make the input "Hidden Input" and make the constant value (in the widget options) "CATALOGO" or whatever the post_type is called in the database. This should then only search for posts of that type.

    Unfortunately at the minute, each field has no knowledge of what's been searched in other fields so it's not possible to limit the options based on the post type. If it's a dropdown field you're using though you could manually specify all valid options if there's not too many?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Custom Fields Search
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic