LoopLogic: Rule Reference
Applies to: PowerTools Suite & Agency Admin Deck
LoopLogic shows or hides a module on each card in a Divi 5 Loop, based on that card's post, product, or other item. Pick one rule in Content → Meta → "LoopLogic — Show this module when" and fill in only what that rule asks for.
Rule reference
| Rule | What to fill in |
|---|---|
| Loop item has a Featured Image | Nothing |
| Loop item has no Featured Image | Nothing |
| Loop item is sticky | Nothing |
| Loop item is in this category | Category slug (Posts → Categories → Slug) |
| Loop item has this tag | Tag slug |
| Loop item is in this term | Taxonomy and term slug. Use this for product categories, project categories, or any other taxonomy. |
| Loop item field is checked | Field name. Works with true/false fields, or a checkbox with at least one box selected. |
| Loop item field is not checked | Field name |
| Loop item field is not empty | Field name (an ACF key, or _thumbnail_id) |
| Loop item field is empty | Field name (an ACF key, or _thumbnail_id) |
| Loop item field equals a value | Field name and value. Example: on_sale and yes |
| Product is on sale | Nothing. WooCommerce only. |
| Product is in stock | Nothing. WooCommerce only. |
| Product is out of stock | Nothing. WooCommerce only. |
| Product is featured | Nothing. WooCommerce only. |
Find a category slug
- Go to Posts → Categories.
- Read the Slug column for the category you want (for example
specials).