Hi,
Custom fields are items, which are assigned to a custom post type. If the plugin was to return the custom fields, from the custom fields database, they would lead to nowhere, as they only exist with custom post types.
If you typed in the field name into the “Search in selected custom fields” option, and nothing came up, then it is either not a custom field, or it not had been used before. Once a field is used by a custom post type, it is stored in the post metadata table, and our plugin can also list it there.
It does not matter if the field is visible or not, the plugin uses the database for search, where the fields are stored regardless of the visibility.
Best,
Ernest M.
Thanks for so detailed reply.
All checked but without results.
The only results I get when try to filter any post type different to “Posts” (in “Search in custom post types”), is dragging the “wpcf7_contact_form” to the “post types you want to use!”. In that case the search display a complete list of every contact form 7 custom type (every link to a page without contents).
When I drag “Fields” and “Field Groups” post types and I search by the name of my custom type, and I get a results linked to that custom field (to a page without content).
The only way the plugin works well is dragging the “Posts” to the post types you want to use, but with that action, I losting any possibility to exclude any content in post.
Greetings,
Javier.
Hi Javier,
May I ask what post types you want to display as results? Are those posts or pages or something else?
Sure, I’m using Posts as post types.
Here you can see examples of my settings.
SETTINGS
Thank you!
The issue is with the selected custom post types. You only need the “Post” post type there: https://i.imgur.com/lfOYb9B.png
The rest looks all right. This way the plugin will return the posts based on the region custom field.
Thank you so much for your time. Now works great.
My confusion was because every posts was categorized, and the plugin was search there too.
Your asessory let me found out that, and switching off the “Search in terms? (categories, tags)” and achieve a clean search.
Greetings;
Javier.
You are welcome Javier 🙂
I will mark this as resolved then. Feel free to rate the plugin if you like it, it is greatly appreciated.
Best,
Ernest M.