• Resolved ppahv

    (@ppahv)


    Hi,

    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,

    https://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ppahv

    (@ppahv)

    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!

    Plugin Author Hector Cabrera

    (@hcabrera)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Change date format’ is closed to new replies.