Shortcode example

<?php function my_example() 
{
return 'hello world shortcode example';
// or echo 
} 
?>
<?php add_shortcode('mytest', 'my_example');?>

Then add [mytest] to the post.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

*