WordPress.org

Forums

Custom Post Types and Categories (1 post)

  1. newyorkcity
    Member
    Posted 2 years ago #

    I'm redoing my website and I have posts under categories /movies/, /gaming/, /tv/, /blu-ray/

    I have created a Custom Post Type called "movies_cp" and I have 'rewrite' => array('slug' => 'movies' added so my post url can be site.com/movies/custom-post-type-post-here

    the new posts seem to work but all my posts under the category movies 404 even after resetting the permalinks.

    I was told I can delete the categories and set has_archive to true but is this the only way? is there anyway possible I can stop the custom post type from doing anything to the URL? If possible I would like to have the URL set by the category and then automatically have a category selected for the correct post type.

    heres all my custom post types: http://pastebin.com/xndG1nhf

    Anything I can do?

Topic Closed

This topic has been closed to new replies.

About this Topic