【发布时间】:2020-04-20 02:07:01
【问题描述】:
我想知道为什么我的 ACF 字段没有显示在使用 gatsby-source-graphql 插件的 gatsby 应用程序中?我的 ACF 字段在我使用 WP 插件时显示:WP GraphiQL,但在我运行我的 gatsby 应用程序时不显示。我只能使用 gatsby-source-wordpress 导入 ACF 字段吗???其他一切似乎都出现了。我有一个使用没有问题的自定义帖子类型,但 ACF 字段是问题所在。任何帮助都会很棒,谢谢, 斯宾塞
这是我的 Gatsby 配置中的内容:
{
resolve: `gatsby-source-graphql`,
options: {
// This type will contain remote schema Query type
typeName: `WPGraphQL`,
// This is field under which it's accessible
fieldName: `wpgraphql`,
// Url to query from
url: `http://wpgraphql.local/graphql`,
},
},
【问题讨论】:
标签: wordpress graphql advanced-custom-fields gatsby wp-graphql