Wordpress Graphql-我可以按acf列进行过滤吗?

问题描述 投票:0回答:1

我正在尝试过滤spost(我的cpt)的查询结果,但找不到通过acf列进行过滤的选项。 WPGraphQL是否可以通过acf过滤结果?

My graphiql interface for "spost" (a custom post type)

wordpress graphql advanced-custom-fields custom-post-type
1个回答
0
投票

由于此功能在数据库上的成本很高,因此无法按ACF字段过滤连接。目前唯一的选择是使用WPGraphQL连接API将参数添加到连接中。

https://docs.wpgraphql.com/extending/connections/

© www.soinside.com 2019 - 2024. All rights reserved.