Forums › Forums › Search & Filter Pro › Search field not working in CPT
Tagged: cpt
- This topic has 9 replies, 2 voices, and was last updated 8 years, 2 months ago by Anonymous.
-
Anonymous(Private) October 11, 2016 at 10:59 am #63230
Hi,
we have configured a first form to test it with posts and pages and it works perfectly but when we use a form for CPT searches it fails.
Our form has been built with these fields: Search, two taxonomies and a sort order field.When we filter by one taxonomy or both of them, the form works correctly but if we use the search field, it does not take into account the information inside this field.
I can send you login details if you wish.
Thanks
Trevor(Private) October 11, 2016 at 11:45 am #63246Hello Oscar
I logged in but you are editing the form, so it is locked to me. However, it may not be necessary. The text search field in Search and Filter (and WordPress default search is the same) only searches in Titles and Content.
To extend this to other data, you need to install the free Relevanssi plugin, find the section for custom field and put
all
in that option setting. Make sure it is indexing all the posts and custom posts, taxonomies you need and build the index. In S&F Pro, on the advanced tab, enable support for Relevanssi.Anonymous(Private) October 11, 2016 at 11:52 am #63248Hi Trevor,
I have closed the page in order you to be able to see the form. In this moment, the form is not searching neither the title not the content.thanks for the information about the Relevanssi plugin, I need to find in all the data of each custom post type. I wil try to use it after this is working properly.
Trevor(Private) October 11, 2016 at 1:29 pm #63278In the advanced tab you hade the two options for Relevanssi ticked, but for this you need to install the Relevanssi plugin, which you had not done. So I have unchecked them. Also, the Results URL was not a full URL (it is now), it was only the page name. I also switched off the setting for
Maintain Search Form State
, but I do not know if you need this. I generally do not enable this.Can I close this thread now?
Was this support OK? You can leave a review if you wish:
http://www.designsandcode.com/wordpress-plugins/search-filter-pro/reviews/#comment
-
AuthorPosts