Skip to content

Instantly share code, notes, and snippets.

@samkent
Last active July 17, 2016 12:25
Show Gist options
  • Save samkent/83f73b8923a84512fd65aac533afc2a1 to your computer and use it in GitHub Desktop.
Save samkent/83f73b8923a84512fd65aac533afc2a1 to your computer and use it in GitHub Desktop.
Multiple methods for rendering the_title(); in WordPress
<!-- Method one -->
<h1><?php the_title(); ?></h1>
<!-- Method two -->
<?php the_title( '<h1>', '</h1>' ); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment