What is a slug and how to optimize it?

When we talk about SEO for WordPress, we often talk about creating the right slug for a page. Of course, we’re not talking about the slimy creature that eats your plants. So, what is this ‘slug’ then? And why should you optimize it? In this post, we’ll explain all you need to know about it.

Having an orange or red traffic light for the ‘keyphrase in slug‘ check in Yoast SEO? Here’s what that check does and how to turn that light green.

What is a slug?

A slug is the part of a URL that identifies a particular page on a website in an easy-to-read form. In other words, it’s the part of the URL that explains the page’s content.

For this article, for example, the URL is https://yoast.com/slug, and the slug simply is ‘slug’.

How to edit a URL slug

In WordPress, the slug is the part of your URL that you can edit when writing or editing a post. Editing it in WordPress looks like this:

Note that this only works with the right permalink settings. You can edit the permalink settings in WordPress through Settings > Permalinks. We recommend choosing an option in which the

[…]

What is a slug and how to optimize it? Keep Reading »
#Blogging #WordPress #BloggingTips #BlogChat

A WordPress Commenter

Recent Posts

WordPress 7.0 Release Candidate 3

The third Release Candidate (“RC3”) for WordPress 7.0 is ready for download and testing! This…

21 hours ago

Performance Chat Summary: 5 May 2026

The full chat log is available beginning here on Slack. WordPress Performance Trac tickets @spacedmonkey…

4 days ago

Get Involved With WordCamp US 2026 in Phoenix

WordCamp US 2026 will take place August 16–19 in Phoenix, Arizona, and applications are now…

5 days ago

WordPress Student Clubs Build Momentum

WordPress Student Clubs are beginning to take shape as a new way to carry the…

1 week ago

Presence API Feature Plugin

The Presence API is an experimental feature plugin that provides a system-wide awareness layer —…

2 weeks ago

Performance Chat Summary: 21 April 2026

The full chat log is available beginning here on Slack. Performance Lab Plugin (and other…

3 weeks ago