Right now I'm submitting a drop-down form to it's own page (action="") to filter posts displayed.
I'd like to not have to refresh the page, which resets the forms. Is there a way to query posts/filter them using ajax?
I'd go with @Vinicius' answer with the following changes:
Yes, but you'd have to work on it a little bit. Assume you're sending the following variables via jQuery:
Then, you would verify the request like:
It's far from complete and it's not tested, but I hope it gives you some direction. =D
Did you manage to load the filtered page without AJAX ?
If you are modifying the main query using new WP_Query, you can use this kind of request parameter
where the query-parameter can be taxonomy term, author or any other parameter.
where targetPage is the request parameter.
Hope this help