WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Type and Taxonomy Permalinks Broken (7 posts)

  1. scottelkin
    Member
    Posted 3 years ago #

    If I create a custom post type "movies" with custom taxonomies "director" and "actor", this is what I get out of the box with the default Permalink structure:

    (when I add a movie post type)
    /?movies=clerks

    If i click on the Director taxonomy from the movie page:

    /?directors=kevin-smith

    When I click on the "actor" taxonomy from the movie page:

    /?actors=jason-mewes

    If I change Permalinks to "/%category%/%postname%/ I get:

    /movies/kevin-smith/

    and then just

    /kevin-smith/
    /jason-mewes/

    For director and actor respectively.

    All of these just 404.

    What am I doing wrong here? How can I fix the actor and director permalinks to show:

    /directors/kevin-smith/
    /actors/jason-mewes/

    AND have them all not 404?

  2. scottelkin
    Member
    Posted 3 years ago #

    sorry with my use of singular vs. plural. my taxonomies are "directors" and "actors", both plural.

  3. scottelkin
    Member
    Posted 3 years ago #

    anyone?

  4. hatefulcrawdad
    Member
    Posted 3 years ago #

    I'm having the same problem, posted about it. Not much help yet. Did you have any luck ever?

  5. ronbme
    Member
    Posted 3 years ago #

    Just use "Custom Structure" under Permalinks.

    The custom structure should be " /%postname% ". (No quotes of course.)

    In the case of a custom post type of "movies" the permalink will be
    " /movie/avatar ". You should see this permalink when you edit your "avatar" post.

  6. willshouse
    Member
    Posted 3 years ago #

    @ronbme, that does work for custom post types, but for regular posts (like blog entries) i would still like to keep the date format /Y/m/d/title structure

    anybody else having that issue or trying to do custom rewrites for the custom post types?

  7. willshouse
    Member
    Posted 3 years ago #

    ok, i found the solution. you have to flush out the taxonomy. instructions here

Topic Closed

This topic has been closed to new replies.

About this Topic