Skip to content

Instantly share code, notes, and snippets.

@jchristopher
Last active January 1, 2016 20:59
Embed
What would you like to do?
<?php if ( is_home() ) : ?>
<h2><?php echo the_title(); ?></h2>
<?php elseif ( is_search() ): ?>
<h1><?php echo $wp_query->found_posts; ?> <?php _e('Search results'); ?></h1>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment