WordPress Related Posts
[resolved] Variable Time Range (2 posts)

  1. ad4mlaz
    Posted 3 years 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?



  2. Zemanta
    Plugin Author

    Posted 3 years ago #

    Hey Adam!

    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: support@zemanta.com

    Take care & have a nice day!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic