Below are all the correct ways to create a parent URL in WordPress, step-by-step
Method 1: Create Parent & Child Pages (Most Common)
Step 1: Create Parent Page
-
Go to WordPress Dashboard
-
Click Pages → Add New
-
Enter page title (example: Services)
-
Click Publish
Parent URL created:
example.com/services/
Step 2: Create Child Page
-
Go to Pages → Add New
-
Enter title (example: SEO Services)
-
On the right sidebar, find Page Attributes
-
Under Parent Page, select Services
-
Click Publish
Child URL becomes:
example.com/services/seo-services/
✔ This is the correct & SEO-friendly way
Method 2: Set Parent Page for an Existing Page
If page already exists:
-
Go to Pages → All Pages
-
Hover on the page → Click Edit
-
In Page Attributes, choose Parent Page
-
Click Update
Method 3: Change URL Using Permalink Slug
-
Edit the page
-
Click on Permalink
-
Add slug like:
services/seo-services
Not recommended unless you understand URL hierarchy
Better to use Parent Page option
Method 4: Parent Category URL (For Blog Posts)
For posts (not pages):
Create Parent Category
-
Go to Posts → Categories
-
Add category (example: Digital Marketing)
Create Child Category
-
Add new category (example: SEO)
-
Select Parent Category → Digital Marketing
URL:
example.com/category/digital-marketing/seo/
Method 5: Parent URL in Custom Post Type (Advanced)
If using CPT (like services):
-
Register CPT with
rewrite -
Enable
hierarchical => true
Example:
'hierarchical' => true,
'rewrite' => array('slug' => 'services'),
