Support » Fixing WordPress » Custom post types and categories

  • I’ve got most of what i need sorted out, but, you know how you get category.php pages from posts, like:

    and then it lists all posts in the category “reviews”. How do you get this kind of behaviour from a custom post type?

    I have taxonomy already there for the CPT, just don’t know how to display it like the normal posts as above.

Viewing 4 replies - 1 through 4 (of 4 total)
  • create a new file single-{posttype}.php and copy the code from index.php and paste there.

    single.php is for changing the template for single posts, why would that help me get the page I would want as shown above?

    “review” is a taxonomy here?


    if review is a taxonomy then create this taxonomy-{taxonomy}.php and paste the code from archive.php or category.php file

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom post types and categories’ is closed to new replies.