WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plugin: Most Commented] How To: Exclude Pages (2 posts)

  1. fhamilton
    Member
    Posted 5 years ago #

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

    http://wordpress.org/extend/plugins/most-commented/

  2. ember
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic