Home  ›  FAQ Answers  ›  What Is A Slug?

What Is A Slug?

When WordPress creates a new post or page, it also creates a ‘slug’ and this slug is what is used in the permalink (or url) to identify the post. The slug consists of alphanumeric characters only formed from the post title in which all spaces are converted to hyphens and all is made lower case.

Simple:Press Forum makes use of this slug to identify the WP page it displays itself on. By default, when installed, a page is created named ‘Forum’ with a slug of forum.

Slugs are also created for forums and for topics, again, based upon their name and formed by the same core WP routines used for posts and pages. So a typical Simple:Press Forum url will consist of the domain, the page slug, the forum slug and the topic slug as in:

www.example,.com / page-name-slug / forum-name-slug / topic-name-slug

Simple:Press Forum also provides a custom filter that can be used to change a slug at the time of its creation. For details of this filter see Content Filters

Article written by Yellow Swordfish on February 24, 2010 and last modified by Yellow Swordfish on February 24, 2010