Skip to content

Instantly share code, notes, and snippets.

@sumanahmed
Created January 8, 2016 06:48
Show Gist options
  • Save sumanahmed/f56f00a49f6bc2234d36 to your computer and use it in GitHub Desktop.
Save sumanahmed/f56f00a49f6bc2234d36 to your computer and use it in GitHub Desktop.
//html language set
<html <?php language_attributes(); ?> >
//meta charset
<meta charset="<?php bloginfo( 'charset' ); ?>">
//title set
<title><?php wp_title( '|', true, 'right' ); ?></title>
//before ending head
<?php wp_head(); ?>
//before ending body
<?php wp_footer(); ?>
//time set
<?php the_time('M d, Y') ?>
//date set
<?php the_time('d F, y | g:i a'); ?>
//error post
<?php else : ?>
<h3><?php _e('404 Error&#58; Not Found'); ?></h3>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment