How do I can add it to the homepage, not only in the post?
I mean that I want it to display not only in the post, also display in the blog/homepage.
Thanks.
]]>How can I use the plugin outside of the loop?
Thank you.
For some reason I cannot add the postfix in this field. When I add minute, compadre! and click save it doesn’t save it.
]]>Is it possible to make the plugin work with posts written in Cyrillic? Right now TimeSpan doesn’t calculate the reading time correctly. On every post it shows “Less than a minute”. Obviously it doesn’t recognize Cyrillic scripts.
Thanks.
]]>If the post takes ‘more than one minute to read, but less than two minutes’ the text: “greater than 1 minutes” (with an ‘s’) is displayed. There should be an additional option (also to accompany other translations): “greater than 1 minute”.
I have fixed this and thought I’d share. Maybe the creaters of this plugin can use these changes.
I’ve edited the ttr-options.php file with a Greater Than 1 Minute Less Than 2 Minutes Postfix option: https://pastebin.com/5nxfLVDF
I’ve edited the timespan.php file to show this in the frontend: https://pastebin.com/yAZ3DFTM
Please use this to make the plugin better!
Edit: spelling
]]>Putting this snippet into the php causes the page to go blank
<?php echo do_shortcode(‘[time-span]’)?>
it only works when click the ‘Automatically Inject TimeSpan Code’ option.
is there another snippet i can use ?
cheers
]]>Check out the post linked below. It contains ~922 words. I set the WPM in your plugin to 200. That should work out to about 4.6 minutes, yes? If so, any idea why the reading time comes to less than 1 minute?
Thanks!
Nick
]]>Hi,
Thank you for your plugin ,but there is a bug on the rss content.
If I have activated the auto content add on the rss the content is skipped because your filter does not return something everytime.
You just have to add
else {
return $content;
}
On line 120, if not main query or not single then the filter return nothing.
Thank you !
]]>Hi guys,
I got a problem with this plugin. If I check the “Automatically Inject TimeSpan Code” in the backend everything works great.
If the box isn’t checked the whole articles won’t appear. This happens by just activating the plugin. No change if I place the shortcode (<?php echo do_shortcode(‘[time-span]’) ?>) in my template.
If the shortcode is placed in a a template it shows up in the frontend but the article won’t be displayed. Therefore I get those information:
Notice: Undefined variable: post in /wp-content/plugins/timespan/timespan.php on line 42 Notice: Trying to get property of non-object in /wp-content/plugins/timespan/timespan.php on line 42
As said, it only works if the “Automatically Inject”-box is checked. Has anybody any ideas?
]]>