• 0
Sign in to follow this  
Followers 0

Archive Page Category for Custom Post Types Gives 404


Question

Posted · Report post

I have created a custom post type named Movies.  I have created a category named Scary.  I want to see all movies with the category of Scary.  I enter the address of http://www.mysite.com/movies/category/scary and I get a 404.

What am I doing wrong please?

Thanks

Eric

Share this post


Link to post
Share on other sites

7 answers to this question

  • 0

Posted · Report post

Hi Eric,

 

This issue isn't related to DMS, as the same thing will most definitely happen in Twenty Thirteen also. This is because (to my knowledge) there isn't any custom post type permalink structure. So you can't display the category slug in your CPT permalink.

 

So your movie scary post URL will look like this:

 

www.mysite.com/movies/category/scary/exorcist

 

Instead this should work:

 

www.mysite.com/movies/exorcist/

 

http://wordpress.org/support/topic/show-category-in-custom-post-type-permalink

 

To resolve this issue you may want to check out this plugin (untested), also if you search google or the Wordpress support forums, this comes up quite a lot.

 

http://wordpress.org/plugins/custom-post-type-permalinks/

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi Eric, how have you set up the custom post type? Are you using something like types and views? 

 

Check the slug you have set for the custom post type when you set it up to make sure it matches what you have typed into the url. Are you able to see /movies if you view that.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi thank you for the reply.

 

Yes I am using wp-types to create the custom post type.

 

I am using the Categories taxonomy that is default with WordPress.  I specified that my custom post type can use it.

 

When I go to www.mysite.com/movies I see all movies independent of the category.

 

When I go to www.mysite.com/movies/category/scary or any category I get the 404

 

Thank you for helping me

Eric

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I believe I had this working in a dev site awhile back....just can't remember all that I did to get it working.  Any help would be greatly appreciated.

Thanks

Eric

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thank you both!  Yes that makes sense and does work.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

No problem.

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  
Followers 0