Example #1
0
<?php

get_header();
if (have_posts()) {
    while (have_posts()) {
        the_post();
        lady_B_post_header();
        the_content('');
        ?>
			
			<div class="link-pages">
				<?php 
        wp_link_pages(array('link_before' => '<span>', 'link_after' => '</span>'));
        ?>
			</div>
			<div class="posts-nav-link">
				<?php 
        next_post_link('<span class="link-next">%link</span>', "<< %title");
        previous_post_link('<span class="link-previous"> %link</span>', "%title >>");
        ?>
			</div>
			<?php 
        lady_B_post_footer(true);
        ?>
	<?php 
    }
    ?>

	<?php 
} else {
    ?>
Example #2
0
<?php

get_header();
?>

<?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        lady_B_post_header(false);
        the_content();
        lady_B_post_footer(true, false);
    }
    ?>

<?php 
} else {
    ?>
	<p><?php 
    _e('Sorry, no posts matched your criteria.', 'lady_B');
    ?>
</p>
<?php 
}
?>

<?php 
get_sidebar();
get_footer();