Forums Forums Search & Filter Pro Need Help with Custom Field Search

Viewing 10 posts - 1 through 10 (of 10 total)
  • Anonymous
    #49719

    http://bluechipfoundation.org/charities-grantees/

    I have 3 entries in the database for Grantees. I have the search form with counts enabled and it shows 0. I added the short code and get 3 errors for the the 3 entries and the title. I also have code to output the search results using wp-query. Could use some help in making it work with ACF plugin.

    I can provide code and/or access in a private manner, if possible.

    Trevor
    #49757

    If these are ACF fields, please make sure that the meta key name used in the form fields does NOT start with _. If it does, look further down the list of field names for the same name with the preceding underscore.

    Anonymous
    #49834

    I tried both _fieldname and fieldname. The one without the underscore works…I get 3 results and 3 No Results.

    http://bluechipfoundation.org/charities-grantees/

    Trevor
    #49835

    Are you able to send me admin logins for me to look at it tomorrow? You can use Private reply.

    Anonymous
    #49840
    This reply has been marked as private.
    Anonymous
    #49841

    To see my template, got to Editor, page-grantees.php and thank you so much.

    Trevor
    #49865

    OK

    The first issue was in the form setup, in the Post Meta setup tab there was an incomplete condition meaning no results were being returned. I have deleted that and it now shows results.

    I have edited the template file and tidied it up a bit. Look in that template file and see the $args, where I have added the filter ID and I have changed the search form Display Results method to as an Archive and in the template file I have added an ID to the results table called main so that Ajax can target it.

    Anonymous
    #49968

    Thank you so much, it looks great.

    Trevor
    #49970

    Is this thread now resolved and can I close it?

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