New answers tagged


Try /wp-json/wp/v2/pages/<id>. Not sure if retrieving a page by name is possible using the REST API.


I solved the problem in a different way. First I extracted all the posts by including category name inside of it. Check the answer below. public function module_data() { global $json_api; $url = parse_url($_SERVER['REQUEST_URI']); $defaults = array( 'ignore_sticky_posts' => true, 'posts_per_page' => -1, ...

Top 50 recent answers are included