Posted By

kristarella on 04/14/09


Tagged

wordpress


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

mlangfeld
tmbrenneke
naeemnur
srdjan
b83s


WordPress Shortcode


 / Published in: PHP
 

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

  1. function my_shortcode() {
  2. return '<h2>This is my heading</h2>
  3. <p>This is my text.</p>';
  4. }
  5. add_shortcode('short','my_shortcode');

Report this snippet  

You need to login to post a comment.