WordPress Query Loop Block: Custom Queries and Extending with PHP
Custom queries for the Query Loop block with PHP The Query Loop block covers the common cases: post type, categories, tags, author, order. Many sites need one more condition: only upcoming events by a date field, products in stock, posts with a featured flag. A block variation with a namespace and two filters, one for…