Jared Quinn

IT Consulting :: Design :: Events Management

URL List

This is not a WordPress plug-in per-se. It is a php script that utilises the wp-config.php to load the default WordPress includes/configuration and database connection and outputs a plain text list of all URLs used by your site.

Uses?

This script was written for Yahoo’s SiteMap Functionality and is based heavilly on the Google SiteMap generator.

Example

You can find an example (live) output here.

Options

From version 2.0 onwards the following options can be supplied on the command line:

  • output=html - Output the list in HTML using A HREF link tags for each link (page of Links), implies comments=1. (example)
  • comments=1 - Show comments between each section - usefull for debugging. (example)

Other changes in version 2.0 include:

  • Archive Page Listing Fixed - Monthly Archive Pages were not previously viewable - now fixed.
  • Archive Page Listing Fixed - Yearly Archive Pages were not previously viewable - now fixed.
  • Added multiple output types: text (default) and html, selectable with the output=x parameter.
  • Added debugging comments into output (default to on in HTML mode and off in text mode, unless comment=1 supplied.

Installation

Place the urllist.php.txt file in your WordPress directory (or anywhere you like), ensure the “include” line is pointing to your WordPress configuration file and rename the script to urllist.php. Hit the relevant URL in your browser and you should get the list.

Caveat

This script was written quickly for a specific task. It is not supported, however if sufficient demand exists, I will convert it into a WordPress plugin.

It shouldn’t cause much damage, if any. I’m not responsible. You should look at the code before you run it.

URL List version 2.0