- This topic has 1 reply, 2 contibutors, and was last updated 9 years ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Question
Answers
Viewing 2 posts - 1 through 2 (of 2 total)
- The question ‘Read time on custom template’ is closed to new replies.
BuddyBoss Home – Web › Support Forums › Solutions › Social Blogger › Read time on custom template
Tagged: reading time
I’m trying to use your read time function on a custom template (homepage loop) (<?php echo boss_estimated_reading_time( $post_content ); ?>).
At fist it was declaring 0 seconds for every post. Then I declared the following two variables global $post;
$post_content = $post->post_content; in the header, but now they are all saying 10 seconds.
Any ideas? Thanks!!!
global $post;
$post_content = $post->post_content;
You need to add these before using boss_estimated_reading_time
and If you need to change the calculation, You will need to define your own functions
boss_estimated_reading_time()
You can find this inside /onesocial/buddyboss-inc/theme-functions.php line 2639
Regards
Varun Dubey