Bricks Builder Custom Query Loop Generator

This generates bricks builder custom query compatible php loop code.

I made some tests with simple examples it worked fine.

If you are wondering where is this all query properties coming here is the original class wp_query click to read. Learn wp_query and you will understand how wordpress loops works.

Quick Start Presets – Top 10 Most Requested

📋 Core Parameters

e.g., post, page, course, product
Use -1 for all posts
Comma-separated: publish, draft, future
0 = parent posts only, 11693 = current post’s children

🎯 Include / Exclude Posts

Comma-separated post IDs
Use get_the_ID() to exclude current post

👤 Author & Search

Numeric ID or PHP function

🏷️ Taxonomy Filters

Tip: Use dynamic data like wp_get_post_categories(get_the_ID()) for current post’s terms
Comma-separated values or PHP function

🔍 Custom Field Filters (ACF/Meta Box)

Important: For ACF date fields, use format: Ymd (e.g., 20231225). For comparing dates, use NUMERIC type.
ACF field name or meta key
Can use PHP functions like date(‘Ymd’)

📅 Date Query

Advanced: Use meta_query with DATE type for ACF/custom date fields instead of these basic date parameters

📑 Pagination & Advanced

Number of posts to skip

🛠️ Custom Parameters Advanced

For developers: Add any WP_Query parameter not covered above

Generated Code

// Click Generate to create your query