It doesn't exclude pages by default but if you add to the query it will. look for the first line, then add the second. cheers!
1) $request .= " WHERE post_status = 'publish'";
2) $request .= " AND post_type = 'post'";
It doesn't exclude pages by default but if you add to the query it will. look for the first line, then add the second. cheers!
1) $request .= " WHERE post_status = 'publish'";
2) $request .= " AND post_type = 'post'";
Wow that actually works! I was looking all over for a Most comments plugin that doesn't show pages until I found this post.
Cheers fhamilton!
This topic has been closed to new replies.