Forums › Forums › Search & Filter Pro › Custom Fields Not Returning Values
Tagged: custom fields, post meta
- This topic has 3 replies, 2 voices, and was last updated 4 years, 3 months ago by Trevor.
-
Anonymous(Private) July 29, 2020 at 11:21 pm #254490
Hi there! I am using this plugin to filter a post type called Animals. The post type has Custom Fields using ACF that classify things like Gender, AnimalSize, AnimalLocation, etc. The custom fields are radio buttons so there are only specific options you can choose from when adding a new animal. I want to be able to display those values on the front end to choose from in the search plugin but I seem to be missing how to do this. I don’t understand how to use the Custom Fields option correctly cause all I see on the front end is the field name for the custom field. That doesn’t really do me any good since I need to see the entries for that field. Does this plugin do this? I feel like I’m just missing something. Thank you for your help!! 🙂
Kristin
Trevor(Private) July 30, 2020 at 8:04 am #254516In selecting the Meta Key name, note a ‘gotcha’ with ACF ….
… it makes 3 meta keys per field, like this (in this example for a field named ‘land’):
#1
_land
#2field_52f0fc4334f52
#3land
In our Meta Key selection list, you need to use key #3, without the underscore at the start of the key name. If you choose #1 by mistake, in the field choices you will see the name of #2.
-
AuthorPosts