New WordPress Plugin: Stardate

On September 8, 1966, Star Trek debuted in the United States on NBC. To honor the 44th anniversary, we have coded and released a novelty plugin for all of you Trekkies out there. The Stardate Plugin offers three core functionalities, the coolest of which is first:

  1. You know that publication date that shows up on your posts and pages? Change it from the traditional calendar format to a STARDATE. Oh yes.
  2. Use our fancy shortcode to insert the current stardate in a post or page wherever you like.
  3. Use our awesome function to integrate the stardate into your theme template anywhere you like.
Here it is in action:

Today's Stardate is 12404.25

You can download the plugin from the WordPress repository here. More information can be found on the official plugin page- Stardate.

WordPress Gallery Shortcode

Apparently this little gem has been around since WordPress 2.5 (and as of this writing we're at 3.0.1) but I'm just now finding out about it. Good grief!

Gallery Shortcode Tutorial

So you want a fancy WordPress gallery without having to install a gallery plugin? Yes, you can do that. Easy. It's as simple as the following steps:
  1. Start a new post (or edit an existing post)
  2. Using the "Add an image" icon next to "Upload/Insert" above the WYSIWYG editor, add the images you want to display as a gallery on your post. This is technically attaching images to the post.
  3. Wherever you want your thumbnail gallery of images to appear, add the shortcode- [gallery]
And that's pretty much it! Easy right? I told you so!

Gallery Shortcode Options

The [gallery] shortcode also has other options available naturally if you want to customize your WordPress gallery. The basic options are pretty straight forward and include- columns, id, size. [gallery columns="2"]
The columns options, as you might imagine, sets the number of columns the gallery will have. The default is 3 if you don't specify a value. If you set columns to 0, row breaks will not be included in the output. [gallery id="911"]
The id option allows you to pull images from a different post. So if your image gallery you want to display is attached to another post, rather than reupload all those images, just specify the post id of the original post and you're in business. [gallery size="large"]
The size option allows you to choose what image size you want to use in your gallery. The default is "thumbnail" but you can also choose- medium, large and full. (Those sizes of course are the image sizes in your gallery that your image is resized to when you upload, except full of course, which is the original image size.)

Gallery Shortcode Advanced Options

There are some other advanced options as well that let you control thumbnail order, including or excluding particular images from the gallery and XHTML output. If you're interested in those, I recommend you check out the WordPress Codex.

Gallery Shortcode Example

I uploaded a few photos to this post myself to show how this works. So without further ado, here's an example of the gallery shortcode. For the above gallery, I just used [gallery columns="2"]. Hope you found this as interesting and useful as me! And all these photos are copyrighted. :)

WPMU Sitewide Tags – Posts don’t show up?

I'm working on a new WordPress Mu site and am using Donncha's fantastic Sitewide Tags Plugin to pull all the posts from across my network of blogs onto one master blog for indexing features across my site. One thing I didn't realize however was that (at the moment) it only works on posts published AFTER you start using it. If you're like me you have 100s or 1000s or even more posts already in your network. I stumbled across some code the other day that will iterate through your blogs and pull the existing posts into the new tags blog. So Colas Nahaboo, whoever you are, thanks for this awesome bit of code: 1 The easy thing to do, is using the WPMU Power Tools plug-in, from Brian Freeman, run the above query exactly as it is across all blogs and within a few seconds all of your posts will be pulled in. Easy! Thanks to Andrea and Donncha for tips over the past few days, I always appreciate the help.

    • Marty has been an active search marketing professional for over 12 years. He has consulted with the Fortune 100 and Fortune 500 as well as medium to small B2B and B2c businesses, governments and higher ed.