@mapofemergence You are right, thanks! I didn’t expect topics and replies to be hierarchical.
By the way, Pascal, I tried your plugin but it doesn’t seem to work.
The endpoint I’m trying to use for instance http://example.com/wp-json/bbp-api/stats/ (or any in that scheme) throws a 404, including v1 in the URL just gives a blank page.
Hi, this topic has been very helpful in getting the latest replies, thanks Barry & Robin!
I’m trying to get the topic of the last five replies and later on construct the URL using the topic URL and reply # (kinda like Robin’s shortcode plugin does), but I can’t figure out how to do this.
I changed $author_id = get_post( $single_item[‘id’] )->post_author to $topic_id = get_post( $single_item[‘id’] )->topic hoping it would return the topic ID, but no luck. Is there a way to retrieve how to target this field?
Thanks again!