Support Forums

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

This topic is: not resolved

Tagged: , ,

This topic contains 13 replies, has 2 voices, and was last updated by  Trevor 2 months ago.

Viewing 10 posts - 1 through 10 (of 14 total)
  • Allison Rolls
    #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 Moderator
    #211230
    This reply has been marked as private.
    Allison Rolls
    #211315
    This reply has been marked as private.
    Trevor Moderator
    #211397
    This reply has been marked as private.
    Allison Rolls
    #211399
    This reply has been marked as private.
    Trevor Moderator
    #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

    Allison Rolls
    #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 Moderator
    #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).

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

You must be logged in to reply to this topic.