Sites at Lafayette Rotating Header Image

Bug with Numbers-only Page Slugs

We’ve discovered a bug in WordPress in which pages that only have a number for a name (e.g., 2009) can’t be accessed. Instead of going to the page in question (e.g., http://sites.lafayette.edu/asite/classes/2009) the parent page loads (e.g., http://sites.lafayette.edu/asite/classes). The problem is that WordPress will not allow page slugs to contain only numbers; if you change the slug to something with a mix of alphanumeric characters, like “classof2009″ then the page loads normally.

Here’s how to change a page’s slug name:

  1. Click “Pages” from the left menu in your site’s Dashboard.
  2. Hover over the pages titled with only numbers and click the “Quick Edit”
    link when it appears.
  3. Change the slug name to include a non-numeric character and click
    the “Update Page” button.
  4. Repeat for each page titled with only numbers.

This bug has been submitted to WordPress.org.

Leave a Reply