Custom taxonomies and post types together
-
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 sort a portfolio post under the porfolio category “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 for the 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.
-
You did not specify a blog address or reason for posting when you created this topic.
This support forum is for blogs hosted at WordPress.com. If your question is about a self-hosted WordPress blog then you’ll find help at the WordPress.org forums.
If you don’t understand the difference between WordPress.com and WordPress.org, you may find this information helpful.
If you forgot to include a link to your blog, you can reply and include it below. It’ll help people to answer your question.
This is an automated message.
-
This support forum is for only blogs hosted at WordPress.com. Your question is about a self-hosted WordPress install and you need to post here http://wordpress.org/support/
- The topic ‘Custom taxonomies and post types together’ is closed to new replies.