Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm a newbie in WordPress and I've just created a new custom-taxonomy called categories under a custom post type called arts. Is there a way I can create a custom page to display the 'categories's custom type? Such that a user can navigate to arts/categories and see all the terms under the categories taxonomy.

share|improve this question

1 Answer 1

This is a default part of the custom taxonomy functionality built into WordPress. When you register your taxonomy, the following argument play a part in determining whether to display that archive and where:

  • public (is it accessible on the front end?)
  • rewrite (how do the permalinks work?)

You should read through all of the arguments closely to understand how they work.

You also need to make sure that your taxonomy name does not collide with any of the reserved terms.

Finally, there's already a 'Category' taxonomy, so you may be better off just adding that taxonomy (that is already on Posts) to your custom post type. You would do that in your register_post_type() function with the taxonomies argument like it's done here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.