Last Updated: January 12, 2010

Tired of the default thumbnail links that WordPress generates when using the gallery shortcode? I have made a plugin that allows users to add text based navigation to a WordPress gallery in just a few minutes.

This plugin is no longer necessary due to the fact that similar functionality has been included into the WordPress core. Please visit the page for previous_image_link() at the WordPress Codex for more information.

Just follow these simple steps:

Install

  1. Download the appropriate version from WordPress.org.
  2. Un zip the package and upload to your /wp-content/plugins/ directory.
  3. Log into WordPress and navigate to the “Plugins” Panel.
  4. Activate the plugin.
    NOTE: if you were using the workaround I posted a few months back, you will need to open /wp-content/themes/your-theme/functions.php and delete the “mf_image” functions found therein.

Configure Template

If your current theme does not have an image.php file, I would suggest that you visit your theme’s homepage and see if a new version has been released for 2.5+. If no new version is available, you can save a copy of the WordPress default theme’s image.php file to your current theme’s directory and modify it match your current theme.

Locate the following two functions:

<?php previous_image_link() ?>
<?php next_image_link() ?>

Replace these functions with the following functions. NOTE: You can change the parameters to whatever string that you like.

<?php mf_previous_image_link('Previous Image') ?>
<?php mf_next_image_link('Next Image') ?>

You should now save image.php and upload it to your production server and visit your site to see text-based navigation links on all of your WordPress Galleries.

Download

This plugin will soon be hosted in the WordPress Plugin Repository at this address: http://wordpress.org/extend/plugins/text-based-image-links/. Until then, please use the following links: