/ Published in: PHP
Use [short] in a post to insert the text from the function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function my_shortcode() { return '<h2>This is my heading</h2> <p>This is my text.</p>'; } add_shortcode('short','my_shortcode');