Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (is_day()) {
- printf('%s', get_query_var('day'));
- }elseif (is_month()) {
- $month = get_query_var( 'monthnum' );
- $month_object = DateTime::createFromFormat('!m',$month);
- echo $month_object->format('F');
- }elseif (is_year()) {
- printf('%s-%s-%s', get_query_var( 'year','monthnum','day' ));
- };
Add Comment
Please, Sign In to add comment