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

Performance Chat Summary: 30 June 2026

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

2 days ago

The First AI Leaders Graduates

On June 23, around 40 students from the University of Illinois Chicago (UIC), Louisiana Tech…

3 days ago

Browse the New Mercantile Swag Store

Mercantile, the official swag store of the WordPress project, has a newly redesigned storefront with…

1 week ago

Kim Parsell Memorial Scholarship Opens for WordCamp US 2026

Applications are now open for the 2026 Kim Parsell Memorial Scholarship, which supports one active…

2 weeks ago

Global Partners Across the First Half of the 2026 WordPress Event Season

This post recaps how the WordPress project’s five Global Partners — Jetpack, WordPress.com, WooCommerce, Bluehost,…

2 weeks ago

Performance Chat Summary: 16 June 2026

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

2 weeks ago