I have the following:
$queryResponse = new \WP_Query(array( 'post_type' => 'portfolio', 'tax_query' => array( array( 'taxonomy' => 'portfolio_date', 'field' => 'name', 'term' => $dateSelected ) ) )); var_dump($queryResponse);
$dateSelected is '2015'.
I want: All posts from post type of portfolio with a custom taxonomy of portfolio_date (Actual name: Portfolio Date. This is what the user sees) that has the value of, in this case, 2015.
So if I create 6 posts under portfolio, with the portfolio date of 2015, I should get back 6 posts. Right now I get: 0 posts.
I do have 1 post under this post type with this taxonomy.