我有一个自定义的post类型'product‘,它在API响应中返回相当多的数据,多达400个带有很多节点的post。几乎所有的数据都来自高级自定义字段(我使用ACF to API插件来公开它)。在“产品”页面上,我只需要显示产品的标题和图像。有没有办法在使用https://example.com/wp-json/wp/v2/pr
如何从自定义的post类型中获取帖子,而不实际将post类型包括在查询url中?
所提供的数据没有对post类型的引用,所以我得到的只是postID。{"code":"rest_no_route","message":"No route was found matching the URL and reques