Jump to content
Sign in to follow this  
Danny

Taxonomy in the URL?

Recommended Posts

Danny

Hi, I'm using Cusotm post types and taxonomies to make managing easier but I have raninto a small problem. Basically, I have a custom post type called Players and then taxonomies called First Team, Legends. Now when I create a new post under this custom post type, the url for that post is this /players/post name Now I want to display the taxonomy in the URL so it looks like this: /players/first-team/post name or /players/legends/post name So what do I need to do to achieve this? Thanks Danny


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Danny

Yeah, I've been looking at this article earlier, I think I'm slightly confussed as to what actually are custom post types and taxonomies. As I thought that if I created a custom post type for all the players in my home football team and then created a taxonomy for certain parts of the squad status like if there still currently playing they would be in a first-team taxonomy and if they have retired and are considered legends then they would appear in the legends taxonomy. To which, these taxonomies would act like categories like the normal post type. I take it, that having to add all this custom code like on that article, this is not how there supposed to work ? Thanks Danny


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
Kate

Hi Danny, Basically, a custom post type is just another type of "post". So, yes: taxonomies act as categories, etc. Let us know if you need any more help with it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×