April 12, 2014 at 4:26 pm #99864
I try to create by myself a recipe related blog using the Minimum pro theme.
I have used the following guide kindly published by Sridhar Katakam here:
Following the guide I have managed to add the Custom Post Type and also the custom taxonomy.
My problem is that I want to add two more custom taxonomies.
I understand that I must reuse parts of the code from the guide in order to be able to add them, but I am not sure how I must do that.
I have spent a few days trying to find additional info but with no luck, since all the guides I have managed to find only show the code for one, assuming that it is obvious which part of the code you can reuse, but I have no programming skills and this turns into mission impossible for me.
Also I believe that the Custom Post type archive template can be used for all the three custom taxonomies that I need with the help of a redirect function as described here by Bill Erickson here:
I am just not sure how to use it.
Since I am not sure if I have managed to describe my problem in a proper manner I will provide this additional details.
I have managed to rename the custom post type "Portfolio" to "Recipes" using information found on our wonderful forum.
Using the guide I have mentioned above I have managed to create one custom taxonomy.
I will use it as “Cuisine Type”
For this type I will add
2. Italian ... etc
I need to add two more taxonomies called “Dish Type”, where I will add
3. Desserts … etc
The second is “Healthy Recipes”,
1. Gluten free
2. Only vegan ... etc.
I need these three custom taxonomies in order to be able to filter the portfolio (in my case recipes) based on them.
I want to thank you in advance for your precious time and hope for your kind cooperation.
I wish you all a wonderful weekend!April 12, 2014 at 5:02 pm #99865
Lauren @ OnceCoupledParticipant
From what I'm reading, I'm not sure this is entirely the easiest way to organize your content. You'll have to get a second opinion on that, or show it to me when you're done, so I can understand.
To create two additional taxonomies, you'll want to duplicate the very first part of code on Sridhar's page (under "Create Portfolio Type custom taxonomy"). You don't need to duplicate the entire block, just add two more taxonomy registrations, changing the information as needed.
More on registering taxonomies: http://codex.wordpress.org/Taxonomies#Registering_a_taxonomy
April 14, 2014 at 7:42 pm #100328
I want to thank you very, very much for your kind help!
As far as the content organization is concerned, probably this really isn't the easiest way to do this, but as I have mentioned I am not very experienced. Thank you for the tip.
Once again thank you for your help and support!
All the best to you!April 14, 2014 at 9:07 pm #100340
The topic ‘Help needed about custom taxonomies (Minimum Pro)’ is closed to new replies.