Querying by post category slug with core/query block markup
You should not modify the taxQuery value, or that it should always be in the form of {“<taxonomy>”:[<term IDs>],”<taxonomy>”:[<term IDs>],”<taxonomy>”:[<term IDs>],…}. But you can add custom arguments, so “categoryName”:”news” is good. And then you can use the query_loop_block_query_vars filter to add the category slug to the WP_Query arguments coming from the Query Loop block. Here’s … Read more