• So I’ve searched high and low and I can’t seem to get a straight answer for this question: is it possible have a child page of a parent page with the same permalink structure as a custom post type?

    For example, I have the custom post type projects, which in turn creates the permalink structure /projects/project-name. I also have a parent page that displays a query of all the custom post type projects with the taxonomy “coming-soon” that is located at /projects/. That all works great.

    But I also want a child-page of that parent /projects/ page for completed projects that is located at /projects/completed. But from what I have read so far, that is either (a) impossible to do because of WordPress’ permalink structure or (b) really hard to do and I can’t get a straight answer/solution because every situation is different.

    So long question short, can you have a child page with the same permalink structure as a custom post type?

Viewing 6 replies - 1 through 6 (of 6 total)
  • J M

    (@hiphopinenglish)

    Have you tried creating that page in Pages > Add New. If you assign it as a Child Page to Projects, with the URL “/completed”, surely that would do the trick? You can create a custom template for it to loop your completed projects.
    If I didn’t misunderstand your question, then that should work.

    Thread Starter typecconsulting

    (@typecconsulting)

    Yes. I’ve tried that. The issue is that the permalink structure for the custom post type “projects” is interfering with the creation of child pages. For child pages of the URL /projects/ I get a 404 error because it’s not allowing the creation of child pages with the same permalink structure as the custom post type…

    J M

    (@hiphopinenglish)

    Ah! Could you add a custom rewrite rule in your .htaccess to get around this? Unfortunately, I couldn’t help you with that, but that’s maybe a route you could look into.

    Thread Starter typecconsulting

    (@typecconsulting)

    Yes – I think that may be my only choice in the long run. I’ve searched high and low for a workaround but it doesn’t seem to exist…

    Thanks though.

    J M

    (@hiphopinenglish)

    This Stack Exchange thread looks like it might point you the right way.

    Thread Starter typecconsulting

    (@typecconsulting)

    Thanks. I’m still trying to find a workaround, but if I can’t, I’ll have to use that.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Child Page with Same Permalink Structure as Custom Post Type’ is closed to new replies.