Title: post_content empty?
Last modified: August 20, 2016

---

# post_content empty?

 *  [tmarsh1](https://wordpress.org/support/users/tmarsh1/)
 * (@tmarsh1)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/post_content-empty/)
 * Hi all, hope someone can help (I’m *not* a developer by any stretch!).
 * I am using Thesis (Yoast SEO is installed) and am trying to use Brian Crays estimated
   reading time snippet. Here’s how I implemented. I get 0m,0s for every post.
 * Any ideas?
 * Thanks!
 * add_action(‘thesis_hook_before_post’, ‘est_reading_time’);
    function est_reading_time(){
   if (is_single()) { $mycontent = $post->post_content; // wordpress users only 
   $word = str_word_count(strip_tags($mycontent)); $m = floor($word / 200); $s =
   floor($word % 200 / (200 / 60)); $est = $m . ‘ minute’ . ($m == 1 ? ” : ‘s’) .‘,‘.
   $s . ‘ second’ . ($s == 1 ? ” : ‘s’); ?> <p>Estimated reading time: <?php echo
   $est; ?></p> <?php } }

The topic ‘post_content empty?’ is closed to new replies.

## Tags

 * [post_content](https://wordpress.org/support/topic-tag/post_content/)
 * [Thesis](https://wordpress.org/support/topic-tag/thesis/)

 * 0 replies
 * 1 participant
 * Last reply from: [tmarsh1](https://wordpress.org/support/users/tmarsh1/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/post_content-empty/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
