Title: [Plugin: Posts 2 Posts] Using categories
Last modified: August 20, 2016

---

# [Plugin: Posts 2 Posts] Using categories

 *  [johnfotios](https://wordpress.org/support/users/johnfotios/)
 * (@johnfotios)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-using-categories/)
 * Hi. This plugin is awesome, but I’ve got a little stuck with something that isn’t
   mentioned in the documentation.
 * I have two post types, courses and trainers.
 * I have a page which lists the providers, some info about them and which courses
   they provide. That works great with Posts 2 Posts.
 * The problem:
 * The courses have categories, like IT, Marketing, Construction etc. There is the
   ability to select which category you want, and I want this page to display the
   same as before. Trainers and a list of the courses they provide, but I want the
   list of courses to only be courses in that category.
 * If I copy the code over from the previous page, it just displays all the courses
   as it’s a custom query.
 * PASTE BIN: [http://pastebin.com/q7WVim1K](http://pastebin.com/q7WVim1K)

The topic ‘[Plugin: Posts 2 Posts] Using categories’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [johnfotios](https://wordpress.org/support/users/johnfotios/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-posts-2-posts-using-categories/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
