WordPress.org

Ready to get started?Download WordPress

Forums

Compact Archives
HTML5 Update (2 posts)

  1. Steven Vachon
    Member
    Posted 1 year ago #

    To get this up to date with HTML5 <time> tags, apply these changes:

    line 117:
    $result .= $before.'<a href="'.get_year_link($year).'"><time>'.$year.'</time></a> <span>:</span>';

    line 137:
    $result .= '<a href="'.get_month_link($year,$month).'">'.$time_tag.'</a> ';

    line 139:
    $result .= $time_tag.' ';

    after all that, add this below line 135:
    $time_tag = '<time datetime="'.$year.'-'.sprintf("%02d",$month).'">'.$month_abbrev.'</time>';

    Optionally, add rel="archives" to the all above lines that have <a> tags.

    http://wordpress.org/extend/plugins/compact-archives/

  2. Noumaan Yaqoob
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks Steven, we will add this soon.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.