• Sounds like just the plugin I need.
    However, where do I find the code from some Boolean examples for entering into the Content Visibility field?
    My specific case is pretty straightforward: all I want is for a Section/Row/Module to show if the “Dynamic Content” mechanism of Divi’s Theme Builder finds and fills in content from a custom field I defined with Pods. If not, then the Section/Row/Module should just be ignored.
    What do I enter in the Content Visibility field (Advanced tab > Visibility)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nielsk61

    (@nielsk61)

    1 day and many trials and a tribulation later….

    This short code seems to work for me (Divi Theme Builder, Pods plugin, and Content Visibility plugin):

    pods(‘mappost2’, ‘photo3)->exists() !== ”

    Just enter this into the field <Divi module> > Advanced tab > Visibility > Content Visibility

    NB1: ‘map2post’ is the “name” of the Pod (not it’s label!) created as a custom post type (CPT) using the Pods plugin

    NB2: ‘photo3’ is the name (not label!) of any example field in this CPT which in my specific case is a “dynamic content” item for the Image module in the Divi Theme Builder template.

    Result: if ‘photo3’ is populated with an image in the CPT (post) which uses this specific Divi Theme Builder template, it will display. If ‘photo3’ is not populated (empty), it will not display the usual “empty” image frame.

    Simple, right? Great plugin!

    how about boolean example for enrolled in current Learndash course page?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Boolean Examples needed’ is closed to new replies.