Fixed the post parameters to look for right post type. Removed category from post parameters.
Removed debug code.