S
S
Sergey2018-10-07 08:39:36
WordPress
Sergey, 2018-10-07 08:39:36

How to do ajax pagination wp?

Good afternoon, I am learning to work with WP, what is the easiest way to make such a pagination? Products are just separate records, products need to be changed within one block. I thought of displaying all the goods that are, using js to hide some of the unnecessary ones, count them, make pagination based on this and, by clicking on the buttons, show / hide the necessary products.
But in WP there is probably an easier way?) MB drop the necessary article?
Thanks in advance!5bb99bef23bc6065973672.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
id_baton4eg, 2018-10-07
@id_baton4eg

subtle hint:
1) number of e-mail. always the same
2) the wp_query() function has a parameter offset = pagination page * number of emails.
3) display the result in html using jquery, ajax (for crsotuli url request helmet in post)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question