It’s not well documented, but according to the codex, you can pass a ‘type’ variable in the get_comments function. Give this a shot
$comments = get_comments('number=10&status=approve&type=YOUR_POST_TYPE');
It’s not well documented, but according to the codex, you can pass a ‘type’ variable in the get_comments function. Give this a shot
$comments = get_comments('number=10&status=approve&type=YOUR_POST_TYPE');