Skip to content

Instantly share code, notes, and snippets.

@ramzesimus
Created February 13, 2014 10:46
Show Gist options
  • Save ramzesimus/8973064 to your computer and use it in GitHub Desktop.
Save ramzesimus/8973064 to your computer and use it in GitHub Desktop.
<h1 class="page-title">
<?php if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: <span>%s</span>', 'twentyten' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'twentyten' ) ) ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'twentyten' ), get_the_date( _x( 'Y', 'yearly archives date format', 'twentyten' ) ) ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'twentyten' ); ?>
<?php endif; ?>
</h1>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment