1

Suppose I have a [list] shortcode. I want to have a post explaining how to use shortcodes (docs for my theme). How can I have a header like

[list type="arrow"] Shortcode Tag

Currently wordpress will mess it up converting [list type="arrow"] into invalid HTML

4

1 Answer 1

5

This is very similar to this question where Jan had given us all a great lesson :)

just use double brackets, WordPress will not execute the shortcode but just display it with single brackets.

so your header would be [[list type="arrow"]]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.