A
A
Alexander Stepanov2016-05-17 15:49:38
JavaScript
Alexander Stepanov, 2016-05-17 15:49:38

How to get a post by ID in WordPress using AJAX?

Greetings. Please, experts, how can I get the product by id using ajax, using my template file in a specific div.
Sincerely, Alexander.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Borisovich, 2016-05-17
@Alexufo

super question.
Here is the documentation on how to make a request with a filter and get a response from the database
https://codex.wordpress.org/Class_Reference/WP_Query
question you don't need it.
How to work with ajax in the press.
https://codex.wordpress.org/AJAX_in_Plugins
Someone else wrote a good plugin for convenient work with Ajax.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question