Forums › Forums › Search & Filter Pro › Business Directory Plugin and Post Meta Searches
Tagged: business directory, custom fields
- This topic has 16 replies, 3 voices, and was last updated 7 years, 3 months ago by Ross.
-
Anonymous(Private) August 13, 2017 at 2:04 am #125790
Hi there!
I’m having some difficulty in getting a search form to filter Post Meta for custom post types created by something called the Business Directory Plugin. Basically, i’m using this plugin to generate “Directory” post types and using your search plugin to only search for these posts.
I’ve done the following:
– Created a form on my homepage where the 3rd field “Business Focus” is actually searching for 1 of 3 values in this custom field.
– On the form’s backend, the search field is a Post Meta = “_wpbdp[fields][22]”. It’s not a field from ACF so the underscore is okay I believe. The field is pulling values dynamically so it’s reading it correctly.
– In the Advanced section of the form, i’ve enabled Relevanssi.
– I’ve installed Relevanssi, i’ve indexed the Directory Listing post type in its options, and for the “Custom Fields to Index” option, i’ve input “all”.Somehow every time I use the field to search, it results in all ALL directory listings and not the ones I’ve filtered for. I’m kind of stumped and hoping you can assist.
Thank you!
-
AuthorPosts