Return to Snippet

Revision: 13217
at April 14, 2009 18:34 by kristarella


Initial Code
function my_shortcode() {
return '<h2>This is my heading</h2>
<p>This is my text.</p>';
}
add_shortcode('short','my_shortcode');

Initial URL

                                

Initial Description
Use [short] in a post to insert the text from the function.

Initial Title
WordPress Shortcode

Initial Tags
wordpress

Initial Language
PHP