How to insert reading time in meta-box?

Posted in: Newspaper
Post count: 16

Hi,

I’d like to insert the estimated reading time of a post into the meta-box of every post. I use the plugin Reading Time WP which generates the shortcode [rt_reading_time]. How can I change the theme template to show the reading time in the meta-box?

Thx for ur help

Post count: 7909

Hi,

You can try to use do_shortcode() function like in plugin documentation – https://wordpress.org/plugins/reading-time-wp/faq/ and add it in the post template that you use(need). Here you can find meta for each post template: http://screencast.com/t/cHxZ9Lc2p8

Thanks!

Post count: 16

Great that worked but it shows the read-time a line below date and post count. And obviously I want it next to date on the same line.

In the source I find <span class="span-reading-time">Leestijd: 3 minuten</span>

How can i fix this?

Post count: 7909

Hi,

Please provide a link so I can inspect this and provide an accurate solution.

Thanks!

Post count: 16
Post count: 7909

Hi,

You have this issue because of the span class that you use – http://screencast.com/t/iiGnGJXrZ the theme css is applied on roe spans so it is applied also there using span class.
Try to use a class="reading time", it’s important to not use span in the class. If it is removed will look like this: http://screencast.com/t/ta0ud41FMohG

Thanks!

Post count: 16

Perfect, solved! Thx so much.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.