Wordpress and Pages Permalinks

Posted on 2011-10-28
Last Modified: 2012-05-12
This has to do with PAGES (Not Posts) within Wordpress.

If I create a Page called "Fruit", the URL is

If I create s Sub-Pages of Fruit called "Apples" and "Oranges", the URL's would be

How can I get it so that no matter how many Sub-Pages deep a page is, the Slug is always just that page.

The URL's of those three pages would be:

In other words, I do not want the parent slug(s) to be a part of the url.  I want the domain name, and page only.

I've tried the "Custom Permalinks" plugin (as well as several other plugins) but none of them are automatic.  If you submit a page without editing the Permalink, you get the full parent/child slug as the address.

Settings in Wordpress >> Settings >> Permalinks only apply to Posts, not Pages.

Thanks in advance to all that can help.
Question by:DLC123W
    LVL 70

    Expert Comment

    by:Jason C. Levine
    What you're asking for is part of the WordPress core behavior.  The fix is to hack the core which means you will have to replace the code every time you update WordPress.  The Custom Permalinks plugin is the best solution.
    LVL 10

    Expert Comment

    by:Jini Jose

    Author Comment

    I checked out the link but it does not provide the functionality that I need.  Yes, Pages allow you to edit the Permalink in the page editor, but only for that specific part of the page - it does not allow you to remove any parent slugs that have been added - as referenced in my original post.

    I do like "Custom Permalinks" plugin but the problem is that it is not automatic.  If I had the site over Editors to add/administer content - should they forget to enter the Custom Permalink, then the Wordpress Default kicks in.  I like the fact that Wordpress creates the semi-hierarchy permalink, I just wish there was the option to not have all the parent pages as part of the slug.  When you have pages three and four levels deep, the URL can become very long.

    I don't mind if it is a wordpress hack - if someone knows how to do it.  I am the only one with the capabilities to upgrade the site and its plugins.  I just don't want to be in a position where the URL's get to be super long because of all the parent slugs added into the URL.

    What urkes me is that we can change the permalinks so easily for Posts.  Why wordpress has forgotten about Pages and this ability, is beyond me.
    LVL 31

    Accepted Solution

    LVL 2

    Assisted Solution

    by:Ryan Bayne
    The other approach is not adding them too Fruits as child pages. Change your theme to show "Fruits" title and list the children using their ID. This would save the use of a plugin which is important to consider for the long run.

    Another thing is the difference between pages and posts is only how you percieve them other than how Wordpress treats them in Admin. You can make a page look exactly like a post visually and in source code. You do not need to use posts in a blogging fashion but usually it does mean some customizing to your theme which is better than using plugins if your site won't change much once complete.

    If your not in a position to be changing your theme, then a plugin will do the job plugins were meant for. Low costing and easy to install.
    LVL 70

    Expert Comment

    by:Jason C. Levine
    This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
    I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
    This video teaches users how to migrate an existing Wordpress website to a new domain.
    The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now