WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ebenezer357
    Member
    Posted 1 year 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

    thanks

    http://wordpress.org/extend/plugins/wp-custom-fields-search/

  2. don benjamin
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    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

About this Topic