Support » Plugin: Shortcoder — Create Shortcodes for Anything » Can I make conditional with this plugin?

  • Hi!

    I need to create a shortcode to create WhatsApp buttons and depending on the page the tracking code is changed.
    To do this, I used to use WP conditional shortcode, but it does not work anymore.
    With the new shortcoder updates, can I really do a conditional like that?
    Thanks, and this plugin is awesome. Very useful!

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

Viewing 1 replies (of 1 total)
  • I had to take a look at the “WP conditional shortcode” plugin. AFAIK, there are not direct replacements, since this plugin doesn’t provide any other shortcodes besides its own “sc”. Having said that you can create yourself or have someone create for you php code that performs any checks you need to make and embed calls to it in a shortcode.

    For instance
    [sc name="is_page"]

    contains something like

    <?php my_is_page("right page","wrong page"); ?>

    There is a plugin to write plugins 😀

    which might come handy.


Viewing 1 replies (of 1 total)
  • The topic ‘Can I make conditional with this plugin?’ is closed to new replies.