logical approach to function parameters for markup

This commit is contained in:
Sean Davis 2014-05-01 10:30:54 -05:00
parent 0d45a9df7a
commit c89d030c6b
3 changed files with 6 additions and 4 deletions

View file

@ -6,7 +6,7 @@
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<?php the_title( sprintf( '<h1 class="entry-title"><a href="%s" rel="bookmark">', get_permalink() ), '</a></h1>' ); ?>
<?php if ( 'post' == get_post_type() ) : ?>
<div class="entry-meta">