So Easy Even a Chimp Can Do It!
RSS icon Email icon Bullet (black)
  • WordPress Short Codes in Templates

    How do you put shortcodes in your template files?

    I came across a problem the other day.  I found a plugin I wanted to use but it didn’t have any php calls to invoke it, only WordPress shortcodes.  I scanned the forums and found a very good alternative from Dukessa.  By using a WordPress call to the short code  I could add the call to the header.php file.

    Here is the call format:

    <?php echo do_shortcode(’[shortcode]‘); ?>

    Here is an example of how to embed a short code in a header.php file for NextGEN Gallery plugin.

    <?php echo do_shortcode(’[slideshow id=1]‘); ?>

    Give it a try, it works great.

    Post to Twitter Post to Plurk Plurk This Post Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to StumbleUpon Stumble This Post

  • Twitter Weekly Updates for 2009-11-22

    • Installed WordPress 2.8.5 on 1and1.com and it is not working, not enough memory! #
    • With WordPress 2.8.5 Image uploading will give you problems with 1and1.com #
    • I had to use Dreamhost.com to get WordPress 2.8 and image posting to work #
    • Check out this great microblogging WordPress theme called P2, http://www.p2theme.com #

    Powered by Twitter Tools.

    Post to Twitter Post to Plurk Plurk This Post Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to StumbleUpon Stumble This Post

  • Twitter Weekly Updates for 2009-08-09

    • Barbecuing chicken and sitting on the patio! :) #
    • Has anyone found a testimonial program for WordPress that works? I have tried 5 now and none of them work with 2.8 … :(
      Any suggestions? #

    Powered by Twitter Tools.

    Post to Twitter Post to Plurk Plurk This Post Post to Digg Digg This Post Post to Ping.fm Ping This Post Post to StumbleUpon Stumble This Post

Bad Behavior has blocked 264 access attempts in the last 7 days.

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.