D
D
dmplvtsv2015-11-30 01:50:36
JavaScript
dmplvtsv, 2015-11-30 01:50:36

How to load wordpress posts via ajax?

I need a post filter function without reloading the page.
I understand how to make ajax loading of the same query request (make a separate page with a loop and load it .load(mysite_php.url + "/ajax-posts");
but how to load a modified query, that is, for example, the site has a slider slider and the user, moving it, modified the query, for example, increased the value of showposts, which would lead to loading query_posts('showposts=20'); instead of query_posts('showposts=10');
vaguely written but I hope you understand

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Inwork277, 2015-11-30
@Inwork277

Pass parameters to post
api.jquery.com/jquery.post

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question