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.17

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. :)

    • 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.