- This topic has 2 replies, 2 voices, and was last updated 10 years, 8 months ago by .
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Advanced Custom Field not working
Hi,
I am adding a Post Meta box to search an Advanced custom field (Select) on my WooCommerce Products, but for some reason the results are not showing. Do you have any documentation for Advanced Custom Fields?
This is my link: https://thesourceimports.com/advanced-search/
Thanks,
Andrea
Hey Andrea
Not specifically on ACF.
What you need to dp is add a Post Meta field to your form, and select the correct key for ACF.
Just so you know, ACF creates two keys for every custom field, one start with an undescore _mykey and then a plain one mykey – it is the second format you would need ot choose.
Also just to note, I see you are using some fields wrong – I see you are using the product category field several times. This is not possible – you can only use a taxonomy once in your search forms- please see the restrictions here:
What you’ll need to do is create new taxonomies or product attributes for each additional field.
Please see here on using product attributes in your search forms:
http://www.designsandcode.com/documentation/search-filter-pro/3rd-party/woocommerce/#Attributes
Thanks
Also in WooCommerce, the price is usually stored in the meta key _price 🙂