New Plugin: Alt Link Text

Many WordPress sites include navigation menus generated using the wp_list_pages() function. By default, wp_list_pages() links to pages using page titles as the link text. Sometimes, though, it’s useful to link to a page using something other than its title. For example, the title of this website’s home page is “Welcome to Technokinetics”, but I’d much rather have it linked to as “Home” in the top navigation menu.

This is a common enough scenario that I thought it would be worth writing a plugin to make it easier to deal with. The result, Alt Link Text, adds an “Alternative Link Text” field to the Write Page and Manage Page screens in the WordPress dashboard. This field can be used to specify alternative link text to be used in place of the page title in page lists generated using wp_list_pages().

The plugin will work with WordPress versions 2.5 and upwards. It will not work with earlier versions of WordPress, as the functions that it uses were only added in version 2.5.

The plugin is currently in Beta, so if you’d like to help with its development then please give it a go and let me know how you get on. Suggestions for extra features are welcome too.

Leave a Reply

You must be logged in to post a comment.