I am a semi beginner wordpress php developer, and I try to combine 2 different category_name
here.
$args = array(
'post_type' => 'project',
'showposts' => 2,
'category_name' => $post->post_name,
'category_name' => 'featured',
'orderby' => 'menu_order',
'order' => 'ASC',
);
I guess that I may need to combine the 2 category_name here. Do you know how to do it?
I want to know if it is possible to have 2 different types of filters under the same category_name
.
2
Answers
You can use get_cat_ID to get the ID of the category name.