How to Remove Parent Slug From Child Page URL in WordPress

Do you want to remove the parent page slug from child page url in WordPress? By default, WordPress adds parent page’s slug as a prefix to child page URLs which is good for SEO. However, some people may not want parent page slug in the URL. In this article, we will show you how to remove parent page slug from child page URL in WordPress. What is a Parent Page Slug in WordPress? WordPress comes with two main content types called posts and pages. Pages are hierarchical which means they can have child pages. By default, the URL of a child page in WordPress will have its parent page’s slug in the URL like: http://example.com/parent-page/child-page/ This is a better way to organize content if you are using hierarchical page structure on your website. It is considered best practice for WordPress...

Read More
X