better-rest-endpoints icon indicating copy to clipboard operation
better-rest-endpoints copied to clipboard

Custom post type by taxonomy

Open oskarrough opened this issue 6 years ago • 1 comments

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?

oskarrough avatar Mar 23 '19 19:03 oskarrough

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.

coderbhaai avatar Jan 17 '20 08:01 coderbhaai