WordPress uses SEO-friendly URLs and automatically adds the parent page title form to the child page URLs. While this often makes sense, here at WPBeginner we prefer to have more control over our permalink structure rather than simply accepting the default settings.
Whether you're aiming for cleaner URLs or want to make your site easier to navigate, removing the parent page title form from your child pages' URLs can be a helpful tweak.
In this article, we will show you how to remove the parent page title form from a child page URL in WordPress, making your URLs shorter and simpler.
How to Remove Parent Slug From Child Page URL in WordPress
What is a Parent Page Slug in WordPress?
Your WordPress website has two main content types, namely posts and pages .
Pages are hierarchical, meaning list of ghana cell phone numbe they can have child pages . These child pages are dependent on their parent pages and usually cover subtopics related to the parent page.
For example, you could have a parent page “Products” with child pages “Pricing,” “Support,” and “Features.”
By default, the URL of a child page in WordPress includes the parent page's slug in the URL. Here is an example:
Using such URLs is the best way to organize content within a hierarchical page structure on your WordPress website. These URLs are considered best practice for WordPress SEO and will make sense to your users when they read them.
It's usually not a good idea to remove the parent page's slug. It can break the URL, and some experts believe it's less SEO friendly . Sometimes it can even conflict with the WordPress permalink structure.
How to Remove Parent Slug from Child Page URL in WordPress
-
- Posts: 691
- Joined: Sat Dec 21, 2024 5:33 am