1

I am trying to get a specific post featured_media with getEntityRecords. but I couldn't.

select("core").getEntityRecords("root", "media", { post: 92 })

1 Answer 1

2

I found the solution... must use getEntityRecord not getEntityRecods:

select("core").getEntityRecord("postType", "attachment", post.featured_media);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.