Forums › Forums › Search & Filter Pro › Custom Post Types & ACF
Tagged: V3
- This topic has 9 replies, 2 voices, and was last updated 5 years, 3 months ago by Trevor.
-
Anonymous(Private) September 7, 2019 at 9:32 am #220463
Hi there,
I just purchased the plugin and I am now trying to get it to work properly, but can’t find any good documentation regarding CPT’s and ACF.
Here is what I am trying to achieve:
I’ve got around 5 custom post types, all with their own ACF fields. I want to create filters on the archive pages and within certain pages, to browse through these custom post types. How would I start at this?I tried creating a search form and made it to search in a specific post type. I added a post meta, went for choice and for meta key selected one of the acf fields. I added the shortcode inside a page, but when I select any, it says; no results have been found.
Also at ‘posts’-tab I selected ‘published’, but in the dropdown it shows all of the choices instead of just the published ones.Would love to get some proper help on setting this up!
Trevor(Private) September 18, 2019 at 3:56 pm #221253OK, I think this may be the problem:
https://www.screencast.com/t/7pHmcfwv
It is what we call an incomplete filter condition, in that, with an empty condition field, it can never be satisfied, leading to no results.
Click the ‘remove’ link and save the form and try that.
Trevor(Private) September 26, 2019 at 2:04 pm #221992Taking these points in turn:
#1 The page layout is (or should be) handled by your theme of page builder plugin/function. Most themes allow you to enable a sidebar for the page, into which you can add widgets (such as our form).
#2 You can customise the result.php file, where that text is to be found. See here for how:
https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results
#3. Only one form per page (using Ajax) is possible, sorry. More flexibility will come in V3 (no ETA yet for that, sorry).
-
AuthorPosts