O
O
Octik2016-03-10 01:05:13
JavaScript
Octik, 2016-03-10 01:05:13

Ajax post loading in wordpress?

Please tell me how to implement the loading of posts on the WordPress page, there are 6 blocks with posts when you click on the search button, it is necessary to load search for 3 blocks (it is necessary that it works on the page template and not in the index.php file) tell me how to implement like everything I could find tried and no way(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nikfakel, 2016-03-10
@nikfakel

You need to write a function in function.php for the Ajax request, and specify ajax-admin.php in the Jax requests (well, or something like that). wp-kama.ru/id_2018/ajax-v-wordpress.html - about Ajax requests. In functions.php, you need to write a function that will display the necessary posts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question