Forums Forums Search & Filter Pro ACF custom fields are shown correctly as filter but aren't filtering the results

Viewing 10 posts - 1 through 10 (of 23 total)
  • Anonymous
    #185853
    This reply has been marked as private.
    Anonymous
    #185855
    This reply has been marked as private.
    Trevor
    #185870

    You appear to be editing the Home Page right now. Did you add a filter_next_query shortcode before the Elementor element that shows the results (possibly a Post grid), as detailed here:

    https://searchandfilter.com/documentation/3rd-party/elementor/

    Makes sure you are not using a different widget (you should be using the Posts widget), as I know there are extra widgets that come with some other plugins, that may not work.

    Anonymous
    #185874

    yes
    I added the ‘filter_next_query shortcode’ before the Post grid widget
    and i left the home page editing screen so you can ceck it now if you want to

    side note: since taxonomies do work with S&F without a problem
    may be I simply should create custom taxonomies (with plugin like ‘pods’)
    instead of custom fields (with plugin like ‘ACF ‘)?

    Anonymous
    #185882

    so.. is there a solution?
    my client is about to inspect the search this Sunday morning
    so I really have to know ASAP if there is a solution
    if not..I’ll have to replace all the custom fields with custom taxonomies before sunday

    Trevor
    #185894

    They SHOULD work, so I do not know why they are not, and with such a short deadline, try using a taxonomy for now.

    Anonymous
    #185929

    O.K
    the strangest thing just happened
    i duplicated the search form and the home page and then inserted the new (cloned) search form the the new (cloned) home page and updated the settings accordingly (a.k.a the short codes and search results address etc) and- boom – it works! custom fields as filters also work smoothly!
    this is really strange..
    but….as long as it is working – my client will be happy so I’m happy too 🙂

    Anonymous
    #185931

    update: o.k
    may be i”m on to something
    if i (in the WordPress settings) change the page with the working custom fields-filters to be the home page and update the settings accordingly (by setting the url of the results to be the home page url etc) than the problem resurface again
    meaning – again – only the taxonomies filters are working but custom fields as filters wont work anymore
    it seems s&f will fail to update the url when a custom field filter is applied in the home page

    so.. for now..I’ll still have to use taxonomies but I really hope, Trevor, that you are reading this (probably only in Monday) and it’s giving you some kind of clue how to keep digging into this problem and solve it, could you do that?
    could you investigate why custom fields as filters won’t work in home page (but will work in other pages)?

    Anonymous
    #185933

    if it’s any help
    when i try a custom field filter and nothing happens – if i open chrome’s developer console i can see the following error massage:
    http://www.websitename.com/?sf_data=all&_sfm_customfieldname=chosencustomfieldvalue > Failed to load resource: net::ERR_TOO_MANY_REDIRECTS

    (of course instead of http://www.websitename.com/ i’m seeing my clients website and ‘customfieldname’ is the name of the custom field filter and ‘chosencustomfieldvalue’ is the chosen value of that filter but because of my client I can’t expose them here)

    Trevor
    #185956
    This reply has been marked as private.
Viewing 10 posts - 1 through 10 (of 23 total)