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


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 and acknowledge you have read our privacy policy.

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