I have been trying out the “hot topics” function in the template tag plug-in this evening and following the instructions in the Codex:
What I’m missing in the documentation is how the “hotness” is calculated. Is the formula available anywhere?
I have been trying out the “hot topics” function in the template tag plug-in this evening and following the instructions in the Codex:
What I’m missing in the documentation is how the “hotness” is calculated. Is the formula available anywhere?
Its in the plugin…
it uses the formula:
score = log($days – $post->delta)
where $days is passed into the template function (default is 30) and delta is the difference between current date and the post date…
there is a filter on the score, so you can replace it with your own calculation if you like…