getEntityRecords/useEntityRecords: How to use CPT metadata?
Ok, I found the answer myself thanks to Can you filter posts by meta key with the getEntitityRecords selector? Despite my first understanding the >>>query<<< parameters for list posts given in the Reference do >>>not<<< contain the meta. I followed the article and created a query filter for the CPT, i.e. function mycustomposttype_meta_query_filter() { add_filter( … Read more