Forums Forums Search & Filter Pro Post Type dropdown not retaining its value on Ajax reload

Tagged: 

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

    I have a select page with a Post Type dropdown, a “Topic” (tag) dropdown, and a search box. Whenever the page Ajax reloads (or even if it is hard-refreshed with a query) the Search box and Topic box retain their values, but the Post Type box displays “All Types”. The filtering still works, so this is really an aesthetic issue more than anything else, but I’m really confused as to why it’s happening at all. The only reasoning I can see is that Post Types seem to work differently than other tags or categories.

    Any help would be appreciated!

    Anonymous
    #53831
    This reply has been marked as private.
    Trevor
    #53886

    The issue is because jQuery is being loaded twice. Once by WordPress (as it should be) and once by something else.

    Edit: I do not think this is the issue, see next post.

    Trevor
    #53887
    This reply has been marked as private.
    Anonymous
    #53899

    Thanks, as always, for your great help.

    Unfortunately, I’m not sure that’s it (for anyone working on the same problem down the road, he found a “jQuery(document).ready(function($)” that he thought may be preventing jQuery from working). If jQuery was being broken here, then none of the functions should be working, no?

    I tried removing the entire troublesome javascript file in question, but the problem on the filter page persisted anyway.

    Thanks again for your continued support!

    Trevor
    #53967

    Is it still in that state (with that file removed for now)? I will look again if it is removed.

    Anonymous
    #53974

    No, and sadly we really can’t keep that file removed for too long right now, as we’re gearing up for launch. Thank you for your help, but to keep that file off is probably out of the cards. Since this is considered aesthetic and not site-breaking, we are just going to launch with the bug, and I’ll let you know when we have the ability to turn it off in Staging again.

    Thanks for your continued help

    Trevor
    #53983

    OK, I will leave this thread open for now, waiting for you to get back to me. No need to reply for now 😉

    Anonymous
    #55429

    Sorry this thread has been dead for so long. We’re now looking into this again, and we have a development site that would be more easy to alter for testing purposes.

    I happened to notice that the problem isn’t entirely aesthetic as I used to believe. Using the “All Types” selection doesn’t actually reset that part of the query, and that box is still not holding it’s value.

    Thanks for the ongoing support!

    Trevor
    #55486

    Hiya

    I think we have now resolved this, with our latest dev version. Give me an email address to send it to. You know the procedure for a manual update (using ftp)?

Viewing 10 posts - 1 through 10 (of 14 total)