Not sure what's going on - here's a look at my code:
$args = array( 'orderby' => 'title', 'show_posts' => '-1', 'posts_per_page' => '-1', 'cat' => $goalsCat->cat_ID, 'post_type' => 'Goals', 'author' => $current_user_id, 'post_status' => 'publish', ); $wp_query_assigned = new WP_Query($args); if ( $wp_query_assigned->have_posts() ) : while ($wp_query_assigned->have_posts()) : $wp_query_assigned->the_post(); $title = get_the_title(); echo '<p>'.$title.'</p>'; endwhile; else : echo '<p>You have no set Goals'; endif; wp_reset_query();
If I remove the category param from the $args array, it returns all the posts in the category, so I know that this part is working correctly. But when I add the category, it returns nothing. I am able to confirm that there are posts in each category and that all the ID's are correct.