Hi,
I have created several projects with different categories.
Lets say I like to get all projects with the category work.
I have tried something like this:
$posts = new WP_Query(array( 'category_name' => 'work' ));
or:
$args = array(
'category_name' => 'work',
);
$posts = get_posts($args) ;
However in the result i get anytime all posts?
What am I missing, please?
~Marc