Category : Theme Tutorials

In some cases, some posts requires a second title right below main title. To implement the subtitle, add this code to your single.php file: <?php $subtitle = get_post_meta($post->ID, ‘subtitle’, true); if ($subtitle !== ”) { echo ‘<p>’ . $subtitle . ‘</p>’; } ?> Below this code: <h1> <?php the_title(); ?> </h1> Finally, add this code ..

Read more