• Resolved pavlito

    (@pavlito)


    The custom post type should have url like this

    domain.com/explore-the-guide/chapter-1/subchapter-1

    But the URL is like this
    domain.com/chapter/chapter-1/subchapter-from-parent-1/

    The breadcrumbs structure is correct

    https://snipboard.io/g1me9x.jpg

    • This topic was modified 3 years, 5 months ago by pavlito.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Not completely sure what to suggest here just yet.

    It looks like “explore-the-guide” may be a rewrite slug value that you put in to your settings, since https://internews.dynamint.net/explore-the-guide/ looks like it’s a chapter archive.

    However, that rewrite value doesn’t presently appear to be rewriting for nested individual post permalinks.

    Just to be extra certain, have you flushed permalinks recently? Also have you been doing anything custom with permalinks outside of perhaps setting the rewrite slug value?

    Thread Starter pavlito

    (@pavlito)

    Thank you for the response.

    Sorry if my question was confusing. Let me try to clarify a bit

    With custom post type I am trying to create posts that act as parent and children posts

    Explore the guide – archive

    – Parent post
    — Children post
    -Parent Post
    — Children Post
    — Children post

    The current problem is URL structure from the address bar. It is not matching the structure of the breadcrumbs.

    Breadcrumbs structure so far is good it is
    domain.com/explore-the-guide/chapter-title/subchapter-title
    This structure of page/posts should be presented in url address bar.

    Nothing custom is done.

    Here is the screenshot from the setting maybe I did not set up right?

    https://snipboard.io/Tf7osZ.jpg

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    I don’t think there’s necessarily anything you’re doing wrong. Looks like you set things up to have the base archive URL be custom, but it’s looking like it’s not covering ALL of the potential permalinks.

    About 5 fields down from where you specified the archive slug, there’s a rewrite slug field. Try dropping in “explore-the-guide” there too, and flush the permalinks by visiting the permalinks page again. I think that may get the rest of your URLs fixed up like desired.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘URL structure not good’ is closed to new replies.