I’m using the smart archives plugin, just wondering how I’d convert the following code, which shows the short version of the months, to the standard mode that shows the long version of the months. This is the part of the code in question:
$sm = date("M", StrToTime("$date[month]/01/2001")); // get the shortened month name
$pd = sprintf("%02s", $date[month]); // pad the month with a zero if needed
echo('<a href="'.$archive_uri.$year.'/'.$pd.'/">'.$sm.'</a> '."n");
- The topic ‘PHP specific question.’ is closed to new replies.