• Resolved Clifford Paulick

    (@cliffpaulick)


    Show widget when the shortcode …
    The shortcode is executed on the page where the widget is configured.
    The match needs to be exact and is case sensative. So, “a match” is not “A match” is not “a Match”.
    YES/ no
    Except when the…:
    Shortcode ___ MATCHES ___

    I want this:
    If the page I’m on has a [gravityform] shortcode in the page content, then do not display this widget.

    Is that how it works? If not, please explain (possibly add to the FAQs tab of this plugin).

    tyvm for this plugin

    https://ww.wp.xz.cn/plugins/dynamic-widgets/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Qurl

    (@qurl)

    No, that’s not how it works.
    The output content of the shortcode is matched.

    So, if a shortcode returns the value “1”, that value is being matched.

    Thread Starter Clifford Paulick

    (@cliffpaulick)

    gotcha. But is it looking at shortcodes from the page the widget is on or from the widget’s own content?
    Also, maybe add a generic search phrase (like I was trying to do): if “[gravityform” is found in page content, don’t display widget.

    Whatever logic is available, please update FAQs so all can benefit from this information.

    And tyvm for this plugin!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Better document shortcode logic’ is closed to new replies.