WordPress Popular Posts
[resolved] Change date format (3 posts)

  1. ppahv
    Posted 2 years ago #


    First, thank you for your amazing widget which perfectly meets my needs :-)

    I have a question about date format. In fact, I would like to change it in order to show the date according to the "j F Y" format so that the date will appear as "24 Juillet 2013" for instance.

    I have checked in the code, but I am not able to identify which lines to change; can you help me with that?

    Thank you in advance,


  2. ppahv
    Posted 2 years ago #

    Sorry for this topic, I have solved this issue by myself.

    Just replace all the occurrences related to one of the proposed date code by the one you want.

    Then, check the changes in the widget configuration and it should work!

    For instance :

    - Open wordpress-popular-posts.php;
    - Search all the occurrences related to one of the date codes: for example "m/d/Y";
    - Then, replace them with the desired date format;
    - Activate the date in the configuration and enjoy!

  3. Hector Cabrera
    Plugin Author

    Posted 2 years ago #

    Hi there,

    It wasn't really necessary to modify the plugin's code for that. If you're using the wpp shortcode or the wpp_get_mostpopular template tag then you can use the stats_date_format parameter to pass your own date format.

    Funny thing is that this cannot be done with the widget, probably forgot to add this to it at some point. I'll add this to the widget so the date format can be also changed there as well.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic


No tags yet.