factor1 / better-rest-endpoints

A WordPress plugin that serves up slimmer WP Rest API endpoints.
https://wordpress.org/plugins/better-rest-endpoints/
GNU General Public License v3.0
67 stars 25 forks source link

Custom post type by taxonomy #34

Open oskarrough opened 5 years ago

oskarrough commented 5 years ago

I see that you can query posts by category with /wp-json/better-rest-endpoints/v1/post?category=43. But it does not seem to work for custom post type.

I know wp-json/wp/v2/products?categories=43 works but then you don't have the benefit of the nicely formatted response by your plugin.

Maybe

category id (int)
category_name (string)

needs to be enabled?

coderbhaai commented 4 years ago

This returns the data nicely but does not return the yoast data of the category. The same goes for the tag as well.

This is very crucial from SEO point of view.