<h1 class="page_h1"><?php 
            the_title();
            ?>
 <?php 
            edit_post_link(__('Edit Page', 'sheffieldgreens'), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>');
            ?>
</h1> 
        
            <div class="entry-content">
            
      			<?php 
            the_content();
            ?>
            <?php 
            $parent_slug = the_parent_slug();
            if (show_related_posts()) {
                echo get_related_posts();
            }
            ?>
   
            
            <?php 
            wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'sheffieldgreens'), 'after' => '</div>'));
            ?>
          
			<?php 
            if (is_page(array('People', 'Affinity Schemes', 'results'))) {
                ?>
      
                <ul id="subpages_ul">
                <?php 
Пример #2
0
 
    <!-- Main Content -->
    <section id="single">
    	<div class="container">
        	<div class="row">
                <div class="col-md-8">
    				<?php 
if (class_exists('ItalyStrapBreadcrumbs')) {
    $defaults = array('home' => '<span class="glyphicon glyphicon-home" aria-hidden="true"></span>');
    new ItalyStrapBreadcrumbs($defaults);
}
if (have_posts()) {
    while (have_posts()) {
        the_post();
        get_template_part('loops/content', 'single');
        show_related_posts();
    }
} else {
    get_template_part('loops/content', 'none');
}
comments_template();
?>
 	
   
                </div><!-- / .col-md-8 -->
				<?php 
get_sidebar();
?>
 
            </div><!-- / .row -->
		</div><!-- / .container -->