WordPress.org

Forums

Post Word Count
Exclude some categories from Post-Word-Count plugin (1 post)

  1. achristou
    Member
    Posted 3 years ago #

    I'm using the post-word-count plugin with the following modification to exclude pages from the wordcount:

    if ($single) $query = "SELECT post_content FROM $wpdb->posts WHERE ID = '$id' AND post_type='post'";
    	else $query = "SELECT post_content FROM $wpdb->posts WHERE post_status = 'publish' AND post_date < '$now' AND post_type='post'";

    However, I would also like to exclude some categories from the wordcount. How can I do that?

    http://wordpress.org/extend/plugins/post-word-count/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Post Word Count
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic