Пример #1
0
        the_permalink();
        ?>
" class="link-article" >Узнать больше</a>
												</div>										
											</div>
										</div>
										
									</div>
									<?php 
    }
    ?>
	
									<div class="container">
										<?php 
    if (function_exists('kama_pagenavi')) {
        kama_pagenavi();
    }
    ?>
 
									</div>	
							</div>
						</div>	
						
					</div>					
				<?php 
}
if (is_page(11)) {
    ?>
	
					
					<div class="wrap-ip">
Пример #2
0
		<h1><span><?php 
echo $query->get_queried_object()->name;
?>
</span></h1>

		<ul id="news">
			<?php 
if ($query->have_posts()) {
    ?>

			<?php 
    // Start the Loop.
    while ($query->have_posts()) {
        $query->the_post();
        /*
         * Include the post format-specific template for the content. If you want to
         * use this in a child theme, then include a file called called content-___.php
         * (where ___ is the post format) and that will be used instead.
         */
        get_template_part('content', 'short');
    }
    kama_pagenavi('', '', true, array(), $query);
} else {
    // If no content, include the "No posts found" template.
    get_template_part('content', 'none');
}
?>
		</ul>
	</div>
<?php 
get_footer();