Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm looking for a plugin/custom function that removes the parent slug of a child's page permalink.

Something that automatically changes the permalink for child pages.

Example: www.blog.com/products/apple becomes www.blog.com/apple Anyone got a clue if that could be done?

Thanks in advance

share|improve this question
    
    
@fdsa Doesn't work automatically, does it? –  INT Jun 24 '12 at 21:37
1  
You shouldn't do this - it will break WordPress' url conflict checking, so you can get conflicts. But if you don't want page hierarchy in URLs, why are you building this hierarchy? –  Krzysiek Dróżdż Jul 26 '13 at 13:22
add comment

2 Answers

You may not like this answer, but it's a quite simple, and probably most recommended. Don't set these pages as child pages.

There are numerous ways of getting pages to list out in a child-like order - WP Menus.

Use that instead, and you will cause less stress on your WordPress installation - having to set and forget things is much worst than setting them somewhere else.

The only downside would be organization in the back end, but you can either customize the List Table, or create a custom post type to hold all your products in their own area.

share|improve this answer
add comment

I'm not sure if you guys are still looking for a solution for this, but I found the perfect one: http://wordpress.org/extend/plugins/custom-permalinks/

share|improve this answer
    
I don't think it does it automatically though.. –  INT Dec 7 '12 at 12:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.