Posted on 8 February, 2010 By Kim Woodbridge 9 Comments

8 WordPress Shortcodes

Shorts melancias... (by Atelier Vanessa Maurer)

WordPress shortcodes are small pieces of code used in the functions file that allow you to quickly add frequently used content to a post or page.

The shortcode API has been part of WordPress since version 2.5.

Here I’ve rounded up 8 interesting and very useful WordPress shortcodes. A couple of them are ones that I’ve written about before.

 

  1. WordPress Gallery Shortcode – How to use the built-in WordPress Gallery Shortcode to display a simple image gallery.
  2. Display a commonly used link – Using a WordPress shortcode you can easily display a frequently used URL.
  3. How to add a RSS Feed to a Post or Page Using a WordPress Shortcode – Code used to create a shortcode to display a RSS feed on a post or page.
  4. Using Shortcodes To Hide Content From The Public – This shows you to add a shortcode that will only display content to logged in members of your site.
  5. A simple paypal donation link – You only need to change the paypal email in the code and this shortcode will add a simple paypal donation link to a post of page.
  6. Display Related Posts – Many of us use a plugin to display related posts at the end of each article. This shortcode will allow you to add related posts without the use of a plugin.
  7. Google Maps Shortcode – This one is pretty cool – a shortcode that will insert a google map into a post or page.
  8. Send to Twitter – how to create a tweet or send to twitter link with a shortcode.

Do you any favorite WordPress shortcodes that you would add to this list?

photo credit: Atelier Vanessa Maurer


Related Posts:
  • How to add a RSS Feed to a Post or Page Using a WordPress Shortcode
  • (Anti) Social-Lists 4/12/09
  • 14 Flickr Plugins for WordPress
  • How to Add a RSS Feed Without a Plugin Using the WordPress Fetch Feed Function
  • WordPress Gallery Shortcode: Add a Simple Image Gallery to a Post or Page
  • Posted In : WordPress Tips
    If you enjoyed this post, please subscribe to my RSS Feed

    Post to Twitter   Post to Delicious   Post to StumbleUpon

    9 Responses to “8 WordPress Shortcodes”

    Trackbacks/Pingbacks
    1. Daily Digest for February 8th
    Leave a Comment
    You may use: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> .


    Recent Comments

      • softize.net: Hi Kim, I must say this guide was excellent for everyone. You give detailed instructions and security notices that ever...
      • Julie Walraven | Resume Services: This post stuck with me for a long time... I finally listened awhile back and dropped the connection. Then I realized in...
      • Kim Woodbridge: Hi Keith - I originally joined Facebook to find an old friend. I never expected to end up liking it as much as I do....
      • Kim Woodbridge: Hi Rajat - Thanks for the info! I'll try it out as soon as I get the chance....
      • Kim Woodbridge: Hi Timothy - I'm glad you agree - it seems that more people are using it. I'm not seeing quite as many FB updates that ...
      • Kim Woodbridge: Hi David - It is a fine line. My Mom used to sign me up for activities like gymnastics that I didn't want to do because...
      • Kim Woodbridge: Hi Ajith - This was her first time but I hope it gives her the confidence to continue. She did have a great time!...
      • David Rogers: Like you I was very shy as a child and would never have done anything like appear on stage. My children have recently le...