• Hi Guys,

    I’ve added a custom post type, and also added a the taxonomy to the post type. The taxonomies show up fine in the admin panel. The problem i am having is when i go to add a new post. I can select my taxonomy and add my post but the permalink doesn’t add the taxonomy name to the url. For example http://mysite.com/news/{my-post-slug} and I created a taxonomy under news called genre. So shouldn’t my permalink be something more like this http://mysite.com/news/genre/{my-post-slug}.

    Is this just how it’s supposed to be or there is something wrong. My code is below.

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • no that’s how wordpress works by default. the permalink will show the category, not the taxonomy. i know you can customize the permalink, and i am almost positive you can add taxonomy to it. it’s under permalink in settings in your dashboard.

    Thread Starter macleodjb

    (@macleodjb)

    Thats my point. WordPress isn’t showing the category. Its only showing my custom post type.

    like this http://mysite.com/{my-custom-post-type}/{my-post-slug}

    it’s not doing http://mysite.com/{my-custom-post-type}/{my-taxonomy}/{my-post-slug}

    then i’m wrong about which, but my point was more to mean it shows one or the other not both. vanilla wordpress by default doesn’t compare categories to taxonomies in any way, so that means for example with permalinks, it’s one or the other. by default that is.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom Post Type Taxonomy Doesn't work’ is closed to new replies.