• I am constantly modifying one of my shortcodes and often I need to disable a certain line. Can I comment it inside the shortcode instead of deleting it?

Viewing 3 replies - 1 through 3 (of 3 total)
  • What you mean – within the code writen with shortcodes or within the code of a shortcode?

    First one with [note] [/note]

    Thread Starter rishifter

    (@rishifter)

    The terminology seems confusing! I meant when I create my own shortcode from the custom post type added, inside the body of this shortcode where I use [field], [loop] and so on, can I comment those by enclosing them inside a [note][/note]?

    What you mean – Meta-shortcodes?

    if you have a code like

    [if field=myfield value='1']
    whatever
    [/if]

    you can comment it out with:

    [note]
    [if field=myfield value='1']
    whatever
    [/if]
    [/note]
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can I comment a line in a shortcode?’ is closed to new replies.