Support » Plugin: Reading Time WP » How to add it to the post summary/

  • Resolved fh4545



    Thank you for the Reading Time plugin. I have just installed and configured it, working very well.

    There is however one thing I believe would be useful for many users of the Reading Time plugin; being able to show reading time in the post summary. It is properly possible by using the shortcode, but where shall I implement the below shortcode?

    <?php echo do_shortcode('[rt_reading_time label="Reading Time:" postfix="minutes"]'); ?>

    Please have a look at how it is done at Medium; Reding Time at Post Summary at Medium

    As it is now you will first see Reading Time when you open a post. Is it possible to show it in the post summary after the “X Days ago” and before the excerpt, as illustrated below in italic and bold.

    How social media data can improve people’s lives – if used responsibly
    By Stefaan G. Verhulst G. Verhulst 3 days ago

    Reading Time Here

    In January 2015, heavy rains triggered unprecedented floods in Malawi. Over the next five weeks, the floods displaced more than 230,000 people and damaged over 64,000 hectares of land. Almost…

    I hope you will be able to help me out.

    Thank you and best,

    • This topic was modified 4 months, 2 weeks ago by  fh4545.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jason Yingling


    Hi there,

    You would need to alter the code for your theme (preferably using a child theme) in order to get the reading time displayed where you would like it on your post.

    Reading Time WP takes advantage of 2 of the standard hooks available in WordPress to place the reading time before the post content on single pages and before the post excerpt.

    But every WordPress theme uses unique code so it isn’t possible to cover every potential placement as an option in the plugin. Using <?php echo do_shortcode('[rt_reading_time label="Reading Time:" postfix="minutes"]'); ?> in your theme’s PHP files is your best bet to get it placed properly where you’d like it.

    Hi Jason,

    Thank you for your reply.

    I got it working as I wanted.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.