Jump to content

Archived

This topic is now archived and is closed to further replies.

eholland7080

Archive Page Category for Custom Post Types Gives 404

Recommended Posts

eholland7080    0
eholland7080

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
James B    436
James B

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.


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
eholland7080    0
eholland7080

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

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
Danny    1,327
Danny

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/

  • Like 1

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
eholland7080    0
eholland7080

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

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

No problem.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites

×