Forums Forums Search & Filter Pro ACF and CPT archive with custom loop

Tagged: , ,

Viewing 10 posts - 1 through 10 (of 14 total)
  • Anonymous
    #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

    Trevor
    #211230
    This reply has been marked as private.
    Anonymous
    #211315
    This reply has been marked as private.
    Trevor
    #211397
    This reply has been marked as private.
    Anonymous
    #211399
    This reply has been marked as private.
    Trevor
    #211411

    Normally, using Elementor, a user would implement our plugin with Elementor this way:

    https://support.searchandfilter.com/forums/topic/how-can-i-search-elemntor-column-while-retaining-the-design-of-that-column/#post-209754

    And the shortcodes would be like this on the page (the ID numbers shown will need to be changed to match your form ID number):

    https://support.searchandfilter.com/forums/topic/incorrect-categories-and-results-being-displayed/#post-209891

    Anonymous
    #211418

    I saw this and I tried it but it din’t seem to work; maybe b/c I was trying to use it with an archive template instead of a page? – will it work with a custom loop?

    Trevor
    #211422

    It should, but first try it as shown, and then try the custom loop. It might need a bit of fettling (like the class names).

    Anonymous
    #211442
    This reply has been marked as private.
    Trevor
    #211450
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 14 total)