Support » Plugins and Hacks » [Resolved] Variable Time Range
3 years, 6 months ago
I prefer to have popular posts show from the last two weeks. I have modified the plugin code successfully, but every time the plugin updates, I must modify the code again.
Would it be possible to implement a variable time range for users that aren’t satisfied with the default time ranges?
Well, we could try to modify it, although even we ourselves are not sure if this is going to work after the next update.
Go to your plugin settings, find & select the settings.php file, and change the 525 line from the following code:
<option value=”30″ <?php selected($options[‘max_related_post_age_in_days’], 30); ?>>1</option>
… into this one:
<option value=”14″ <?php selected($options[‘max_related_post_age_in_days’], 14); ?>>14 days</option>
Don’t forget to click on the ‘Save’ button and when the plugin updates, don’t mess with the file again. (Or do, if this line of code changes again.)
Let me know how it goes or if you need any additional assistance — I’ll gladly help! Here’s my email address: firstname.lastname@example.org
Take care & have a nice day!