Forums › Forums › Search & Filter Pro › post meta key with ACF and CPTUI
- This topic has 23 replies, 2 voices, and was last updated 4 years ago by
Trevor.
-
Trevor(Private) January 29, 2021 at 6:42 am #274510
Make a new ACF Field Group (or edit an existing one) and add a suitably named number field:
https://www.screencast.com/t/yAx7H2x9OlVt
Assign that group to your custom post type:
https://www.screencast.com/t/kTH6PmMjypu
Then add some prices to some posts (see a note abut his later in this reply).
ACF fields are Post Meta field objects in the Form UI.
Note that, with fields made by ACF, when selecting the meta key, 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.
The fields will only show in the list if you have actually entered data in those fields inside posts and saved them. To define them alone without doing that, they will not show up, as our plugin does not look at the Field Group definitions, but at the actual data stored in the Post Meta table.
Anonymous(Private) January 29, 2021 at 10:54 am #274544Hello,
Thank’s for you respond.
But i don’t get any choise, i have only the #2 that’s coming and i can’t select the #2 field in the search and filter form because it is not coming too. I did add some slug in posts but still not working…
Could you have a look ? -
AuthorPosts