How to insert WordPress shortcode example

Quick tip on inserting shortcode examples

When you are typing out how to use a wordpress shortcode, use an extra set of [ ] around the shortcode so it doesn’t fire, example:

<pre>[[myshortcode id="123"]]</pre>

This will output your shortcode on the page, rather than the result of your shortcode. 

Leave a Reply

Your email address will not be published. Required fields are marked *