admin管理员组

文章数量:1185500

Closed. This question is off-topic. It is not currently accepting answers.

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 question

I 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