Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rtowebsites

    (@rtowebsites)

    Hi @luciche,

    the second last option before “Debug-Mode” should be the “Parse shortcodes” option.

    hen activated, it parses shortcodes inside dynamic tags (like in acf fields) before compare the value with your conditional value.

    We mark this issue as resolved, if u need any further help, you can just rewrite here.

    Thread Starter luciche

    (@luciche)

    Can you please give me an example on how to use this?
    Thank you

    Plugin Author rtowebsites

    (@rtowebsites)

    you can create an acf text field with a shortcode inside something like “[gallery id=123 size="medium"]“.

    Dynamic condition will interpret this as string, since shortcode do not get parsed before conditions get checked (in some fields they get parsed).

    If u activate “Parse shortcodes” they will get parsed and u can check for something like is a class inside the rendered html with “contain” -> “gallery-class”

    So you can now use Plugins that deliver just shortcodes with the shortcode widget or any other and build conditional logic on top of it.

    An example could be something like a shortcode that adds a span with a class and flag for geo location. u can check if the class flag-us is set and deliver content for just us users.

    • This reply was modified 6 years, 10 months ago by rtowebsites.
Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Parse shortcodes option’ is closed to new replies.