• Hi!

    I have a problem that I can’t seem to be able to figure out. I am creating a website where I am going to host my portfolio. So I have created a page called “portfolio” as well as a custom post type called “portfolio” and two custom taxonomies that are attatched to that post type called “portfolio categories” and “portfolio tags” (this has been done using the Custom Post Type UI plugin).

    Here’s where it gets tricky!

    1) If I create a porfolio category called “web” I would like the URL of the taxonomy archive to be located at <name of site>/portfolio/web/…. But when I try to change the rewrite slug of the taxonomy “portfolio categories” to “porfolio” it breaks the custom post type slug – so when I click on a post it gives me a 404 (because wordpress thinks I’m trying to look up a portfolio category instead of a portfolio post)

    2) I would like the URL of a post sorted under the portfolio category “web” to be located at “<name of site>/portfolio/web/name-of post”. I’ve got it to the point where it does <name of site>/portfolio/name-of-post but not much further.

    I know that this can be done by creating a custom post type for each portfolio category instead but that is a very hacky solution to the problem. I would really appreciate all the help I could get, I hope someone has done something like that before.

    Thanks for the time 🙂

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Deleted post… Sorry, I read this the wrong way.

    You’d really want to make nested CPTs. You don’t want to use category/postname in that instance.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom taxonomies and post types together’ is closed to new replies.