Show a shortcode without running it

I always forget – I bet lots of people do – that putting a short-code in text will just get interpreted by WordPress as that short-code. Often that’s what I want to do, but when writing about it I might want to say

Enter this in your code : [tivy_stat type="since" format="raw"] but it displays as 2026 because it gets evaluated if the short-code is legitimate.

So how to get around it – just use double brackets. So to get one [ requires entering [[ – how easy is that? Don’t forget to match the closing brackets too.

Leave a Reply

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