Get Custom Posts By Category ID
-
Hello World!
I am trying to get all Product-Posts (Custom Post Type: product) by Category ID but it doesn’t work.
Can you help me?
get_posts(array('category' => 13, 'post_type' => 'product'));
The Products Post Type taxonomy is the standard WordPress Core “category”.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Get Custom Posts By Category ID’ is closed to new replies.