Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1185500
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 23 hours ago.
Improve this questionI am having trouble creating a list of query args that single out posts with an acf parameter for one of our custom taxonomies. We created a tax called "language" with a slug of "ln". If I write a query for that works, I write it like so:
getEntityRecords("postType", postType, { per_page: -1, _embed: true, order: "desc", orderby: "date", ln: selectedLanguage });
Included with my question is a screenshot of my console logging the results.
So there is an "ln" property in my entity records method that returns an array of language ids, in this case ln: [83]
. I would like to target the "acf" object returned in the post records which includes "language" and "select_translations": null.
I have something like this that returns everything, including post records that include any language. This is an example of that:
How would I target the language property within the acf property?
本文标签: block editorTrying to target acf parameter in getEntityRecords post query
版权声明:本文标题:block editor - Trying to target acf parameter in getEntityRecords post query 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738338505a2077370.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论