• Resolved chrimbus

    (@chrimbus)


    I have a CPT /videos/. I need the url to be /our-projects/videos/. I’m a little confused how I might tackle this. If you have any suggestions please let me know. It would be awesome to be able to do this in the settings for each post type. I don’t want to have to start over and utilize the functions.php to make this work. There has to be a way!

    Thanks in advance.

    Jordan

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

    (@tw2113)

    The BenchPresser

    Hi @chrimbus,

    I’m sure there is a way to do this, but I’m pretty certain it’s not something that would be able to be done via the parameters provided for register_post_type(). That said, you shouldn’t need to re-do your post type registration all over again via functions.php, you’d just need to tackle the remaining parts around rewrite rules. CPTUI only handles the register_post_type() and register_taxonomy() parameters, at the end of the day.

    That said, I could see things potentially working out if the post type was say “projects” and the rewrite slug for it was “our-projects”, and then “videos” being a parent post in the post type, finally wrapped up with the actual video projects being child posts. However, that very well may require restructuring things on your end or may not fit functional requirements.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I create a custom URL structure?’ is closed to new replies.