Search code examples
wordpressparent-childpermalinks

WordPress 3.5.1 missing parent in permalink for child page


My site is currently running WordPress 3.5.1

I have created a page (not post) called "Child" with a parent page called "Parent". The child page does not appear to be inheriting the parent page within the permalink structure.

The parent permalink is http://site.com/parent/ and the child page is showing as http://site.com/child/

What I want to happen is for the child page permalink to be http://site.com/parent/child/

I haven't made any changes to the basic structure of the site. It is running the standard "Twenty Twelve" theme.

Any help will be greatly appreciated.


Solution

  • While creating a page you need to select parent page from page attributes column in the right hand side

    Under Settings-> Permalink tab

    create custom structure like - /%postname%/

    FYI - Tested at my end and URL created like - http://localhost/wordpress/sample-page/page-2/