• Resolved rscarter1

    (@rscarter1)


    I can’t get the [if] magic tag working correctly.

    When I use this magic tag statement inside my divi template, it doesn’t work. The other tags work. I’m testing it with this simple statement:

    [if brochure_upload]
    This
    [else]
    That
    [/if]

    It just outputs all of that shortcode and text. If I put it inside a pods template and then call the template, I get:
    That This That

    lol

    Not sure what I’m doing wrong. I attached the page in question where I’m testing. This is a custom post type and the entire is built using the pods magic tags. Love it by the way. But I’m trying to figure out who to hide a section if the field is empty.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Paul Clark

    (@pdclark)

    If you’re able to use shortcodes within Divi, then one of these may work:

    
    [pods name="pod_name" template="template_name" id="5"] 
    [pods name="pod_name" template="template_name" limit="5"]
    

    Where “template_name” is the name of your template ad “pod_name” is the name of your pod.

    The [if] tags would then go into the Pods template.

    See https://pods.io/docs/learn/shortcodes/pods/

    Thread Starter rscarter1

    (@rscarter1)

    I just figured it out in my divi template. I wasn’t encapsulating it. I’m a moron today.

    [pods][if brochure_upload]This[else]That[/if][/pods]

    🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘if else magic tags’ is closed to new replies.