Query topics with WP REST API
-
Hi,
I’m using the beta WP-REST API (beta version 2) to enable REST calls. Some endpoints do work if I add show_in_rest=>true to register_post_types() and register_taxonomies() methods in bbpress.php. With the show_in_rest flag, it allowed me to run the following endpoints:
http://localhost:8888/wp-json/wp/v2/forum
http://localhost:8888/wp-json/wp/v2/taxonomies
http://localhost:8888/wp-json/wp/v2/terms/topic-tag
http://localhost:8888/wp-json/wp/v2/topicMy bbPress website has two forums called “Politics” and “Sports”. I’d like to query all topics in a specific forum, but I’m unable to query with the following endpoints:
http://localhost:8888/wp-json/wp/v2/topic?filterforum_type=sports
How should I filter topics from a certain forum?
Thanks.
- You must be logged in to reply to this topic.