So I have posts & custom post types. They can be either categorized in fashion or tagged with featured. So I want to pull the posts within that category or tagged with featured. This is what I have so far..

$fashion_args = array(
"post_type" => "any",
'tax_query' => array(
array(
'taxonomy' => 'category',
'field' => 'slug',
'terms' => 'fashion',
),
),
"tag" => "featured",
"posts_per_page" => 10
);

Read more here: Get posts by tag OR with the given category


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: