Return to Snippet

Revision: 23799
at February 13, 2010 05:54 by Ben


Initial Code
<?php function my_example() {
return 'my example text';
// or echo 
} ?>
<?php add_shortcode('mytest', 'my_example');?>

Then add [mytest] to the post.

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress Shortcode

Initial Tags

                                

Initial Language
PHP