The post type argument needs to be written as post_type
, but you are using it as post-type
.
Change your argument to this:
$args = array(
'post_type' => 'portfolio'
);
The post type argument needs to be written as post_type
, but you are using it as post-type
.
Change your argument to this:
$args = array(
'post_type' => 'portfolio'
);