WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Hi there Best Wordpress Gurus,

i've a question about using tags to simplify my HTML. For example if i want to ad a block of content lets say a contact form. I don't want to ad all the time my html code can i use a tag something like:

#contact_form and that this tag output a contactform for me.

If this possible can someone please give me a link to tutorial or gives a example.

Tnx in advance.

share|improve this question
up vote 2 down vote accepted


There is functionality which will for the most part accomplish what you are looking for. In WordPress you can create what are known as shortcodes. These, when inserted into a post or page, will allow you to display complex information, much like using a macro Shortcodes can be used for very simple or more complex tasks. Here are some articles to help you get started.

Wordpress Shortcode API

Wp Tuts+ Shortcode Article

share|improve this answer
Hi mitchell thank you very much for your help. i'll check the links. – Navid Aug 17 '11 at 22:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.