Seperating custom post type comments from regular blog posts comments

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');

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)