Title: Exclude posts is needed
Last modified: July 16, 2019

---

# Exclude posts is needed

 *  [jackstron](https://wordpress.org/support/users/jackstron/)
 * (@jackstron)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/exclude-posts-is-needed/)
 * We need a way to EXCLUDE pages (such as startpage, contact page) using the plugin.
 * Right now your plugin is not usable for me because of this – it is a show stopper.
 * Please add a field to recognize a comma separated list of post ids to exclude.
 * PS: It would also be good if you would include a MINIMUM reading length/word 
   count for the plugin to show the text. Because it is obvious that a small posting
   with 200 words is readable under a minute. By entering a minimum word count we
   can show this label only on actually long pages.
    -  This topic was modified 6 years, 10 months ago by [jackstron](https://wordpress.org/support/users/jackstron/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Jason Yingling](https://wordpress.org/support/users/yingling017/)
 * (@yingling017)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/exclude-posts-is-needed/#post-11755691)
 * Thanks for the feature suggestions. I’ll add them to the list of new features.
 * In the meantime here is a code snippet you could use in functions.php to create
   array of post ids to exclude.
 *     ```
       add_action( 'the_post', 'remove_reading_time_by_id' );
       function remove_reading_time_by_id( $post_object ) {
       	$post_ids = array(
       		'53',
       		'10',
       	);
       	global $reading_time_wp;
       	if ( in_array( $post_object->ID, $post_ids ) ) {
       		remove_filter( 'the_content', array( $reading_time_wp, 'rt_add_reading_time_before_content') );
       	} else {
       		add_filter( 'the_content', array( $reading_time_wp, 'rt_add_reading_time_before_content') );
       	}
       }
       ```
   
    -  This reply was modified 6 years, 10 months ago by [Jason Yingling](https://wordpress.org/support/users/yingling017/).
 *  [markfarrar](https://wordpress.org/support/users/markfarrar/)
 * (@markfarrar)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/exclude-posts-is-needed/#post-11994653)
 * Jason,
 * I second this request, but in the meantime, thanks for the workaround which does
   the job.
 * Mark

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Exclude posts is needed’ is closed to new replies.

 * ![](https://ps.w.org/reading-time-wp/assets/icon-256x256.png?rev=2355751)
 * [Reading Time WP](https://wordpress.org/plugins/reading-time-wp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reading-time-wp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reading-time-wp/)
 * [Active Topics](https://wordpress.org/support/plugin/reading-time-wp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reading-time-wp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reading-time-wp/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [markfarrar](https://wordpress.org/support/users/markfarrar/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/exclude-posts-is-needed/#post-11994653)
 * Status: not a support question