Wordpress Plugins
How to Display: Popular WordPress Posts by Reading Time
We all want to reduce our site’s bounce rate and turn our casual visitors into loyal readers. One way to do so is by showing your visitors your top content. Most popular posts plugins take into account views. Another way would be to rank popular posts by reading time. To get started, first we write a function to track reading time:
This plugin simply adds an event listener and tracks time spent on a post. The next function will display popular posts based on average reading time:
This function sorts posts by average reading time in descending order and displays the posts with the longest average reading time. You can always modify this with more advanced features.
