/**
     * Display navigation to next/previous portfolio item when applicable.
     */
    function tography_lite_the_post_navigation()
    {
        // Don't print empty markup if there's nowhere to navigate.
        $previous = is_attachment() ? get_post(get_post()->post_parent) : get_adjacent_post(false, '', true);
        $next = get_adjacent_post(false, '', false);
        if (!$next && !$previous) {
            return;
        }
        ?>
	<nav class="navigation post-navigation" role="navigation">
		<div class="nav-links">
			<?php 
        $in_same_term = false;
        if (tography_lite_is_portfolio_item()) {
            $in_same_term = true;
        }
        previous_post_link('<div class="nav-previous">%link</div>', '%title', $in_same_term);
        next_post_link('<div class="nav-next">%link</div>', '%title', $in_same_term);
        ?>
		</div><!-- .nav-links -->
	</nav><!-- .navigation -->
	<?php 
    }
Example #2
0
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class();
?>
 >
    
    <?php 
if (!tography_lite_is_portfolio_item()) {
    get_template_part("post_image", "content");
}
?>
    
    <?php 
if (is_single()) {
    the_title('<h1 class="post_title">', '</h1>');
} else {
    the_title(sprintf('<h2 class="post_title"><a href="%s" rel="bookmark">', esc_url(get_permalink())), '</a></h2>');
}
?>
    
    

    <div class="entry">
        <?php 
the_content();
//Read more button is in framework/functions/single_functions.php
?>
        <div class="clearfix"></div>
    </div>