What are all the query parameters for getEntityRecords?

If you look into the source code for getEntityRecords, you’ll see that the the core/data library creates entities using the WordPress API in entities.js.

So you can use any parameter available in the REST API. Here are options for posts:

context
page
per_page
search
after
author
author_exclude
before
exclude
include
offset
order
orderby
slug
status
categories
categories_exclude
tags
tags_exclude
sticky

Leave a Comment