Title: Loops &amp; Logic
Author: Tangible
Published: <strong>May 21, 2021</strong>
Last modified: June 11, 2025

---

Search plugins

![](https://ps.w.org/tangible-loops-and-logic/assets/banner-772x250.png?rev=2535522)

![](https://ps.w.org/tangible-loops-and-logic/assets/icon.svg?rev=2535522)

# Loops & Logic

 By [Tangible](https://profiles.wordpress.org/tangibleinc/)

[Download](https://downloads.wordpress.org/plugin/tangible-loops-and-logic.4.2.3.zip)

 * [Details](https://wordpress.org/plugins/tangible-loops-and-logic/#description)
 * [Reviews](https://wordpress.org/plugins/tangible-loops-and-logic/#reviews)
 *  [Installation](https://wordpress.org/plugins/tangible-loops-and-logic/#installation)
 * [Development](https://wordpress.org/plugins/tangible-loops-and-logic/#developers)

 [Support](https://wordpress.org/support/plugin/tangible-loops-and-logic/)

## Description

**[Facebook group](https://www.facebook.com/groups/loopsandlogic) | [homepage](https://loopsandlogic.com/)
| [docs](https://docs.loopsandlogic.com/) |[official support forum](https://tangibletalk.com/)**

**Loops & Logic** is a toolset that allows you to have extensive control over the
display of WordPress content & data on your site’s frontend for when your theme 
or builder doesn’t have the options you need. This plugin gives you the power of
custom PHP theme & builder module development using a simplified HTML-like syntax
that will be familiar to any frontend developer.

### Support

 * Please see the [official plugin site](https://loopsandlogic.com/) and [the documentation](https://docs.loopsandlogic.com/)
   for a complete description of plugin features.
 * Support & discussions can be found on [our forum located here](https://tangibletalk.com/).

### Key Features

 * Use HTML templates with dynamic tags like Loop, Field, and If
 * Use theme location rules to apply **custom templates** to post types, taxonomies&
   more (similar to Beaver Themer or Elementor Theme Builder)
 * Easily **enqueue** your CSS stylesheets and Javascript anywhere using a visual
   location rule builder
 * Seamlessly write your CSS directly in **SASS** without worrying about compilation
 * Create query **loops** of any content type, such as: posts, pages, custom post
   types, attachments, users, taxonomies and terms
 * Display built-in and custom **fields**
 * Build **logic** to display things based on certain conditions, for example: creating
   a menu, with some links only for logged-in users, or by user role
 * Create custom shortcodes to display anything from a custom field to an entire
   dynamic-data driven web page

### Example Usage

At the core of L&L is the ability to quickly and elegantly loop through WordPress
data like in this example of displaying a list of links to the three most recent
posts

    ```
    <ul>
      <Loop type=post count=3 orderby=date order=desc>
        <li>
          <a href="{Field url}"><Field title /></a>
        </li>
      </Loop>
    </ul>
    ```

Accomplishing the same thing in PHP is a little more complex:

    ```
    <?php
    $args = array(
        'post_type' => 'post',
        'posts_per_page' => 3,
        'orderby' => 'date',
        'order' => 'DESC',
    );
    $query = new WP_Query( '$args' ); ?>
    <?php if ( $query->have_posts() ) : ?>
      <ul>
        <?php while ( $query->have_posts() ) : $query->the_post(); ?>

          <li>
            <a href="<?php the_permalink(); ?>">
              <?php the_title(); ?>
            </a>
          </li>

        <?php endwhile; ?>
      </ul>
    <?php endif; ?>
    ```

It can be difficult to add PHP to your site if you’re not a backend developer, but
L&L is a breeze to include, even in a page builder layout.

Page builders like Gutenberg, Elementor, and Beaver Builder often have gaps in their
capabilities that would normally require you to either develop a custom add-on or
purchase a bloated add-on pack just to get the one element you need. L&L adds a 
template editor module directly to each builder so that you can simply describe 
what you want to display in L&L code and place it using the builder interface. You
can even copy-paste your L&L code between page builders if you work with more than
one! It’s like having your own page builder addon factory.

### Plugin & Theme Support

#### Plugin Support:

Loops & Logic works with the post types and custom fields added by most plugins,
but plugins with special data structures like a custom tables or fields with data
formats that need parsing require us to program explicit support.

#### Bundled integrations:

**✅ Advanced Custom Fields (ACF)**

L&L supports Advanced Custom Fields (ACF) field types in the core, allowing you 
to work with most of their field types out of the box! We also plan to support other
WordPress custom field plugins such as Pods & Metabox in the future.

    ```
    <Loop acf_flexible=field_name>
      <If field=layout value=layout_1>

        Layout 1
        <img src="{Field acf_image=field_name field=url}" />
        <Field acf_editor=field_name />

      <Else if field=layout value=layout_2 />

        Layout 2
        <Field acf_editor=field_name />
        <img src="{Field acf_image=field_name field=url}" />

      </If>
    </Loop>
    ```

**✅ Elementor**

Loops & Logic provides an Elementor widget that allows you to either write L&L code
directly in the page builder widget or select from a pre-existing saved template.

**✅ Gutenberg**

Loops & Logic provides a Gutenberg block that allows you to either write L&L code
directly in the block builder block or select from a pre-existing saved template.

**✅ Beaver Builder**

Loops & Logic provides a Beaver Builder module that allows you to either write L&
L code directly in the page builder module or select from a pre-existing saved template.

**✅ WP Grid Builder**

Loops & Logic provides a WP Grid Builder block that allows you to select from a 
pre-existing saved template to load in WP Grid Builder.

**✅ WP Fusion**

The freely-included WP Fusion integration allows you to use conditional logic to
protect or display different content based on a user’s tags.

    ```
    <If user_field=wp_fusion_tags includes value="123">
      User has tag ID 123
    <Else />
      User does not have tag.
    </If>
    ```

We’ll be rolling out premium addons for popular plugins in the coming months, so
check out our website to see what’s available!

#### Premium addons coming soon:

 * WooCommerce
 * Easy Digital Downloads
 * Modern Tribe Events Calendar
 * Gravity Forms
 * LearnDash
 * LifterLMS

#### Theme Support:

Everything will work with themes built according to WordPress standards.

## Blocks

This plugin provides 1 block.

 *   Tangible Template

## Installation

 1. Install & activate in the admin: _Plugins -> Add New -> Upload Plugins_

## Reviews

![](https://secure.gravatar.com/avatar/7ccb3fc903bf7eb24e3e2c31cee4e1ed72bb31b5d31d38e87365d472672df99a?
s=60&d=retro&r=g)

### 󠀁[Helpful Plugin](https://wordpress.org/support/topic/helpful-plugin-286/)󠁿

 [Jonathan](https://profiles.wordpress.org/jhendricker/) March 2, 2026

I’m really happy with this plugin. I inherited a website that was using a similar
but abandoned plugin, and I was able to replicate everything with L&L. The documentation
is pretty thorough. Works well with ACF too.

![](https://secure.gravatar.com/avatar/85cf6f15b89aedad042962ae84d99cd325e2e075625b563b1c43008f4777b9e1?
s=60&d=retro&r=g)

### 󠀁[Blew my mind](https://wordpress.org/support/topic/blew-my-mind-2/)󠁿

 [netzmaedchen](https://profiles.wordpress.org/netzmaedchen/) October 22, 2023

As I am not a programmer, I was struggling really hard for a long time to output
the images from an ACF gallery field as a slider on a single custom post template.
I can’t believe it took me so long to find this plugin and it took me only an hour
to create what I wanted using an external slider script (splide). Absolutely amazing
tool. I am excited to dive deeper into the possibilities! Thank you for this genius
plugin!

![](https://secure.gravatar.com/avatar/dfda3a22e26d7e52d8d08fbbb5e58acabf8680493a1629d63783b58069281914?
s=60&d=retro&r=g)

### 󠀁[Unreal support – amazing plugin!](https://wordpress.org/support/topic/unreal-support-amazing-plugin/)󠁿

 [Sinkadus](https://profiles.wordpress.org/niwin/) October 3, 2023

I needed help when swapping Custom Content Shortcode for Loops and logic. With outstanding
support, I got the swap done in no time, and with an improved result! This must 
be one of the very best plugins out there, with very dedicated people behind it.
THANK YOU!

![](https://secure.gravatar.com/avatar/311e08179d91faca70eb7314e21749b0d9c511e1ed09d2e5c49054187fe448cc?
s=60&d=retro&r=g)

### 󠀁[This plugin is a treasure](https://wordpress.org/support/topic/this-plugin-is-a-treasure/)󠁿

 [atef12](https://profiles.wordpress.org/atef12/) September 14, 2023

Great plugin. Great support.

![](https://secure.gravatar.com/avatar/d14687be018f69d286123a98164a8e7672acbf2fe2791356e13101ecf31828f1?
s=60&d=retro&r=g)

### 󠀁[Must-have in every WordPress Toolbox](https://wordpress.org/support/topic/must-have-in-every-wordpress-toolbox/)󠁿

 [Highedge](https://profiles.wordpress.org/benandtimmies/) August 26, 2023

I’ve only just scratched the surface of what this fantastic plugin can do. I’m really
excited to add this to my standard go-to toolbox for WordPress development and lean
more about the extensive functionality over time. Thanks a lot for all the efforts
making this plugin happen!

![](https://secure.gravatar.com/avatar/4a858ab83e279f04d7be8ee718e3e0f6e568ca68322d65a0f61ec77f3d51a4ad?
s=60&d=retro&r=g)

### 󠀁[A big THANK YOU](https://wordpress.org/support/topic/a-big-thank-you-10/)󠁿

 [swainson](https://profiles.wordpress.org/swainson/) August 12, 2023

This plugin is just brilliant. Can’t believe I only found this now. I went through
dozens of ways to display dynamic content on my site, but this just blows them all
away. It’s super flexible, incredibly extensive and works intuitive. Really excited
to see where this project will go in the future. Keep up the good work! 😀

 [ Read all 39 reviews ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/)

## Contributors & Developers

“Loops & Logic” is open source software. The following people have contributed to
this plugin.

Contributors

 *   [ Tangible ](https://profiles.wordpress.org/tangibleinc/)

“Loops & Logic” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/tangible-loops-and-logic/contributors)
for their contributions.

[Translate “Loops & Logic” into your language.](https://translate.wordpress.org/projects/wp-plugins/tangible-loops-and-logic)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tangible-loops-and-logic/),
check out the [SVN repository](https://plugins.svn.wordpress.org/tangible-loops-and-logic/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tangible-loops-and-logic/)
by [RSS](https://plugins.trac.wordpress.org/log/tangible-loops-and-logic/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4.2.3

Release Date: 2025-06-11

 * ACF Repeater: Improve support for sort/filter by field
    - Translate internal keys used by ACF to actual field names
    - For field value comparison, ACF Date field is in format “Y-m-d” and DateTime
      field is “Y-m-d H:i:s”

#### 4.2.2

Release Date: 2025-04-25

 * Object cache: Support inline templates by not prepending metadata comment to 
   cached content

#### 4.2.1

Release Date: 2025-04-21

 * Atomic CSS: Utility classes and variables compatible with Tailwind v4
 * Attachment loop type
    - Add field “audio” for audio file metadata from ID3 tags
    - Add field “filepath” for path to file
 * Editor: Improve passing language definition of closed tags to formatter
 * Elandel (template language in TypeScript): Start Expression and Interactivity
   modules
 * Enable by default new features that reached stability; Can be deactivated in 
   settings page
    - Elementor integration: Use new code editor based on CodeMirror 6
    - Object cache for parsed and pre-processed templates
 * Export page: Improve select template types for L&L and Blocks
 * Field tag: Support “.” dot syntax for subfields (object/array/loop)
 * Gutenberg integration: Improve enqueue editor assets in iframe
 * Improve compatibility with PHP 8.4
 * Improve development setup and tests for supported PHP versions with Docker and
   wp-env; end-to-end tests with Playwright; and running tests on plugin zip archive
   before publish
 * Layout template type: Improve loading logic to pass through redirects
 * REST API: Improve compatibility with Checkview
 * Start new features: Content Structure and Form templates; ACF Extended integration;
   Tangible Fields integration
 * WP Grid Builder facet integration with support for pagination; Thanks to @zackpyle!

## Meta

 *  Version **4.2.3**
 *  Last updated **10 months ago**
 *  Active installations **2,000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/tangible-loops-and-logic/), [German](https://de.wordpress.org/plugins/tangible-loops-and-logic/),
   and [Portuguese (Portugal)](https://pt.wordpress.org/plugins/tangible-loops-and-logic/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/tangible-loops-and-logic)
 * Tags
 * [content](https://wordpress.org/plugins/tags/content/)[logic](https://wordpress.org/plugins/tags/logic/)
   [loop](https://wordpress.org/plugins/tags/loop/)[query](https://wordpress.org/plugins/tags/query/)
   [template](https://wordpress.org/plugins/tags/template/)
 *  [Advanced View](https://wordpress.org/plugins/tangible-loops-and-logic/advanced/)

## Ratings

 4.9 out of 5 stars.

 *  [  37 5-star reviews     ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/?filter=2)
 *  [  1 1-star review     ](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tangible-loops-and-logic/reviews/)

## Contributors

 *   [ Tangible ](https://profiles.wordpress.org/tangibleinc/)

## Support

Issues resolved in last two months:

     0 out of 1

 [View support forum](https://wordpress.org/support/plugin/tangible-loops-and-logic/)