• Resolved bydlo

    (@bydlo)


    Hello Everybody,
    since we spend a helluva time of research and trying now i am closed to give up my idea and asking here is the last chance / hope we got.

    What we want to achieve seems to be very simple and most people we asked sayed that it is possible but we couldnt make it.

    Description
    If you have a post called “hello World” and this post is stored in the category “miscellaneous” you get this URL:
    …tld/miscellaneous/hello-world/

    The Url shows “categoryname/postname” (if you have the correct permalink-settings of course)

    And this behaviour i want to achive with a custom post type too, but i become desperate over trying.

    What have we done:
    Almost everything….
    We created a fresh testinstallation
    We created a new CPT called “blogbeitrag”
    We created a taxonomy called “blogkategorie”
    We connected this taxonomy with our CPT
    We created categories in that taxonomy “blogkategorie”
    We created posts from post-type “blogbeitrag”
    We assigned these posts one of the categories from the taxonomy “blogkategorie”

    Despite that we tried so many different CPT-UI settings as i can imagine

    Now we have one CPT-post called “One CPT-Post”
    This post is stored in our own taxonomy-structure which goes like this:
    blogkategorie/hierarchische-blogkategorie

    The URL one would expect now ould be:
    ../blogkategorie/hierarchische-blogkategorie/one-cpt-post

    But the result is always the same…
    The generated URL has always this structure:
    ..tld/CPT-slug/postname

    You can watch it here:
    http://cpt-test.4lke.de/blogbeitrag/one-cpt-post/

    Is anybody able to help and tell us if it is possible to work with CPZ in a hierarchical way and if yes..how this can be done?

    Thanks so much in advance

    https://wordpress.org/plugins/custom-post-type-ui/

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

    (@tw2113)

    The BenchPresser

    What’s your “With Front” setting?

    Thread Starter bydlo

    (@bydlo)

    Hi Michael
    it was deactivated.
    I activated it now and it still doesnt work as expected.

    See….Screenshot

    Thread Starter bydlo

    (@bydlo)

    Hi Michael
    i copied the settings into the post so you can see what settings we use actualy:
    http://cpt-test.4lke.de/blogbeitrag/one-cpt-post/

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Are you willing to test out what will be the 1.0.8 release of the plugin? It has a very minor update in terms of actual code changes, but potentially significant fix in terms of what that change does.

    Thread Starter bydlo

    (@bydlo)

    Of course.
    Is it already available or do you send us a beta?

    PS:
    Your ansers suppose that my expected CPT-behaviour is something which could be done, right?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    The main thing I’m wondering about is if the order of loading/registration in 1.0.7 is affecting you, like it has others, when it came to post type slugs and taxonomy slugs being in the same url.

    https://github.com/WebDevStudios/custom-post-type-ui/archive/master.zip

    Should extract into its own folder that you could upload to your site alongside 1.0.7. Disable the current plugin before you enable this one. Just to be certain, flush permalinks after activating this one, and then test. If it’s fixed and working like you’d expect, awesome. If not and it’s still giving 404s etc, then we’ll need to keep working through this.

    Thread Starter bydlo

    (@bydlo)

    Hi Michael
    it still is the same 🙁

    May i give you access to the backend (its just an testarea) so you can have a look at it?

    regards axel

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    If that’s still giving 404s, then I do wonder if custom rewrite rules are needed. Our plugin doesn’t cover every single use-case or customization ability with the topic. So it may definitely still be possible, just not necessarily with the UI settings our plugin provides.

    Thread Starter bydlo

    (@bydlo)

    404 ??

    This topic is not about 404s.
    Its about the capability of hierarchical structure like it can be done with posts in categories

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Ah, my mistake. Sorry Bydlo.

    That said, I’m pretty confident it can be done, but we don’t do anything with customizing rewrite rules other than providing spots to set rewrite slugs and a bit of query_var work. We’re not super high end on this topic.

    Thread Starter bydlo

    (@bydlo)

    ???
    You make we spend my time by proposing that you read my post and in the end it turns out that you didnt read it at all and the only thing you do now is shrugging your shoulders and saying “sorry mate, not my prob”?

    you made me almost speechless

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Sorry, but to add some separation of things, it feels to me like you’re asking if it’s possible in general, which I said I’m pretty confident is yes, it can be. However, I’m pointing out that we don’t offer that much flexibility/implementation with our specific plugin. It’s simply not THAT robust.

    So it’s a case of “can I do this with custom post types” vs “can I do this with Custom Post Type UI”. We’re not going to be the perfect tool for everything and every use case.

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

The topic ‘Understanding CPT & hierarchy – need help’ is closed to new replies.