BuddyBoss Home – Web Support Forums Solutions Social Blogger Read time on custom template

Tagged: 

Viewing 2 posts - 1 through 2 (of 2 total)
  • Question

    #59458
    @stackstreetnew

    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!!!

    Answers

    #61818
    @vapvarun

    Hi @stackstreetnew

    
    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

Viewing 2 posts - 1 through 2 (of 2 total)
  • The question ‘Read time on custom template’ is closed to new replies.