I wanted to know if there is a way to use function like query_post() in an ajax call ?
Let's say i'm calling the file _inc/ajax.php
I want to be abble to use the wordpress functions, but i don't know why. Can someone help me for that ?
Thanks a lot :)
I highly recommend the JSON API plugin: http://wordpress.org/extend/plugins/json-api/. It provides a RESTful interface for the most common WordPress functions including query_post
and allows you to add your own actions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With