[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
The topic ‘[Plugin: Posts 2 Posts] Using categories’ is closed to new replies.