Considering how regularly new versions of Firefox now come along, that's quite some bug fix list in version 10! http://t.co/K3I2vLpW 1 week ago

11th
Jan 10

Displaying WordPress short codes



closeThis post was written 2 years 1 month 1 day days old, so is a bit old now. Feel free to read and comment on this post, just remember some things change with time and any facts in this post may not be accurate anymore.

I’m in the process of writing some instructions for a new plugin – one which uses WordPress short codes. They’re the useful codes that you put in square brackets and are replaced by something else.

The problem is then documenting, because your plugin then wants to convert your text to the appropriate output.

Thankfully, my solution is quick and simple – and it involves another short code!

Open up your themes function.php file and add the following lines of code to it…

add_shortcode('showme',show_me');
function show_me($paras="",$content="") {return $content;}

Then, simply wrap [showme] and [/showme] around any short codes that you don’t want to be interpreted but do want to be displayed.

Delicious Digg Facebook LinkedIn Read It Later reddit StumbleUpon Twitter SeparatorEmail Google Translate PDF Online Print Friendly

No Comments

    No Pingbacks/Trackbacks

      Leave a Comment

      All comments are approved manually. No spam please, or comments that add nothing to the conversation.

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

      *

      You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>