Shortcodes with optional {content}
-
If I am not wrong, when I use
{content}in a snippet, I cannot use only the opening shortcode, i.e., I am forced to use[shortcode]Some content[/shortcode]. If I use only[shortcode](without the closing[/shortcode]), the output will include a literal {content}, with braces.I have some snippets with optional
{content}, so it would be nice if I could use only the opening shortcode when there is no content to be added.This is a suggestion for the future. It is not a priority, though, since I can keep using the snippet normally if I simply put a white space between the opening and the closing shortcodes when there is no content to be added.
The topic ‘Shortcodes with optional {content}’ is closed to new replies.