Forums › Forums › Search & Filter Pro › ACF and CPT archive with custom loop
- This topic has 13 replies, 2 voices, and was last updated 5 years, 6 months ago by Trevor.
-
Anonymous(Private) May 14, 2019 at 10:20 pm #211220
Hi,
I tried reading through as many of the support topics as I could, but most are so specific. And I’m not even sure where to start figuring out what is wrong.
I’ve tried two methods to make the Search and Filter work and neither really works as it should. I’ve got a simple CPT that uses a few ACF custom fields that I wasn’t to search and filter by. At first I built an archive template with Elementor Pro that used their post display and a plugin that allowed me to create a custom loop (to display the ACF fields in the archive list). I added the form to this archive template and it didn’t seem to connect to the search results (archive) at all.
Then I hand coded an archive page for the CPT (though I’m a little shaky with php) that displays the archive fine. I added the form shortcode to it, and the search only barely works. Once in every ten tries it actually filters the archive items. It may be a problem with how I coded the template, but I really am not sure.The CPT archive page is: https://billgrahamfoundation.org/shows/
So at least you can see how it is not working.
Can you help point me in the right direction to get it working?
(I want to avoid having to change my custom fields into custom taxonomies if possible)
Thanks! -Allison -
AuthorPosts