WordPress.org

Ready to get started?Download WordPress

Forums

Creating Page: Same Slug; Different Page Parent -- Problem (6 posts)

  1. ralph
    Member
    Posted 9 years ago #

    The best way to describe my problem would be to put it in a hypothetical scenario:

    I want create two pages: a "contact" page, and a "news submission" page -- both these pages have <forms to submit stuff.

    Therefore, I need to create some "confirmation" pages (like: "Thankyou for your submission")

    Under the page contact I create a sub-page entitled confirm. The slug is also confirm. Therefore the URL is www.site.com/contact/confirm/.

    Under the page newssubmit I create a sub-page entitled confirm. The slug is also confirm. Therefore the URL is www.site.com/newssubmit/confirm/.

    Well I do want to maintain some sort of uniformity..

    In theory, this shouldn't be a problem, since they have different parent pages.

    Apparently it is not -- on the confirm pages, I get both /newssubmit/confirm/ and /contact/confirm/ contents on the one page, with their own headings as well (as if they were two "posts" being listed)

    Is there a way to create two pages with the same slug, but in different locations?

  2. Murry
    Member
    Posted 9 years ago #

    Hi Ralph,
    I dont know if this helps, But I gave up on this and relented to using Ryans (excellent) Plugin for a contact form till I work out my own system - it can go anywhere from the one plugin - this may help?

  3. Murry
    Member
    Posted 9 years ago #

  4. ralph
    Member
    Posted 9 years ago #

    That was just an example of what happened --- Still there is a problem with WordPress.

    Is there a way to create two pages with the same slug, but in different locations?

  5. Murry
    Member
    Posted 9 years ago #

    Hi Ralph - Im the last person to advise about WP cos Im new as well.
    But I think the page slup is the problem - the database will find 2 instances of it and return 2 (like posts). I guess if you alter 1 the problem is solved?

  6. Ralph - it certainly looks like WP doesn't like having the same slug for different pages, even if they do have different parents. Not something I'd tried to do previously, but having tested it, I think you've got a good point. Getting the contents of both pages does look like a problem to me...

    I'd say that WP should either change the slug (making it clear that you can't have two the same) or handle the two pages correctly. It might be worth you posting a summary in the Requests and Feedback forum.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags