• I would like to change the date format that the Archive widget outputs.

    Currently it like this
    December 2013

    and I would like just
    Dec 2013

    Any hooks or filters? I can seem to find any info on this other then rolling my own.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Rolling your own isn’t a half bad idea compared to the necessary kludge. The filter is ‘get_archives_link’, your callback is passed the HTML link and text of each item in the list, one at a time. You have to search and replace all the months that could be in the link text.

    This process will be applied to all calls to get_archives_link(), not just widget calls. If you do not want the same filter applied elsewhere, you need to figure out a way to detect widget calls from other calls.

Viewing 1 replies (of 1 total)
  • The topic ‘Archive Widget’ is closed to new replies.