WPDesignBlog.com: Home of WordPress Design

Shortcode functions for WordPress

shortcodes1 Shortcode functions for WordPress

8 fun & useful shortcode functions

‘Shortcodes’ are a feature of wordpress used for executing custom functions by inserting a small snippit of code into a post. For example, my download monitor plugin now uses shortcodes; by entering [download id="1"] into a post, the plugin will output a download link.

So if you need to do something fast and use simple solutions shortcode functions will be ideal for you.

What can we find in this post ?

1. Get some bloginfo
2. Integrate some Adsense Ads
3. Obfuscate an email address
4. Show related posts (uses tags)
5. Add a simple paypal donation link
6. Output a google powered chart
7. Show a google map with a marker on it
8. Talk like a pirate

Read full story here: 8 fun & useful shortcode functions for wordpress.

If this list is too short for you grab more shortcodes with Smashing Magazine post: Mastering WordPress Shortcodes.

Smashing Magazine gives us:

1. Create a “Send to Twitter” Shortcode
2. Create a “Subscribe to RSS” Shortcode
3. Insert Google AdSense Anywhere
4. Embed an RSS Reader
5. Get posts from WordPress Database with a Shortcode
6. Get the Last Image Attached to a Post
7. Adding Shortcodes to Sidebar Widgets

Strange is that i never heard about those shortcodes and it looks like i need to start using them immediately. You don’t need to add tons of plugins, just simple shortcode functions.

  • I am looking for a clean and ite magazine style theme for wordpress without too many function calls, any suggestions?. thanks in advance :)

  • @Dennis : I have draft ready to be online but I am still changing some small details. So the title for new post will be: “Magazine Style Website based on WordPress” and I show there one great magazine style WP theme that i would choose if i were you.

  • The post that i was talking about is here:

    Magazine Style Website based on WordPress
    http://wpdesignblog.com/magazine-style-wordpress-theme/

You can follow any responses to this entry through the RSS 2.0 feed.