Custom Field Search Ignored

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Custom Field Search Ignored

This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 4 years, 1 month ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #26085
    smt09
    smt09
    Participant

    The Class Search at the bottom of this page (hidden currently with password: silver) does not fully work.

    https://cicb.com/home-new/

    There is a “Custom Fields” setting set up for the “start_date” field but, while results do properly show it, the filter does not. Results are including all dates.

    Attachments:
    You must be logged in to view attached files.
    #26099
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    I think you have the operator inverted. Based on your filter, you probably want to restrict the results after that date: https://i.imgur.com/0gxZMGp.png
    Changing that should very likely resolve the issue.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


    #26111
    smt09
    smt09
    Participant

    Hello,

    We’ve changed it to “after” but the result set still continues to ignore the date selection. It shows classes before the selected date. See attached screenshots.

    Thanks!

    David

    Attachments:
    You must be logged in to view attached files.
    #26118
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi,

    Thank you, there is indeed an issue there. I tested on the back-end preview window, where it works perfectly. Then I investigated the page source, and found that there is an additional element injected as a parent to the date picker field, which should not be there: https://i.imgur.com/dzGl43p.png
    The source of that ijection is a custom script within the site footer: https://i.imgur.com/ziNPnxs.png

    I strongly recommend removing that, as it changes the behavior of that field, and the search script cannot properly update the field values.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.