Exemplo n.º 1
0
 /**
  * Print HTML with meta information for the current post-date/time and author.
  *
  * @since 2.2.0
  */
 function odin_paging_nav()
 {
     $mid = 2;
     // Total of items that will show along with the current page.
     $end = 1;
     // Total of items displayed for the last few pages.
     $show = false;
     // Show all items.
     echo odin_pagination($mid, $end, false);
 }
Exemplo n.º 2
0
		<main id="main-content" class="site-main agenda" role="main">
			<?php 
$args = array('post_type' => 'agenda', 'posts_per_page' => get_option('posts_per_page'), 'paged' => get_query_var('paged', 1));
$agenda = new WP_Query($args);
?>
			<?php 
if ($agenda->have_posts()) {
    // Start the Loop.
    while ($agenda->have_posts()) {
        $agenda->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', 'agenda-archive');
    }
    // Post navigation.
    echo odin_pagination(2, 1, false, $agenda);
} else {
    // If no content, include the "No posts found" template.
    get_template_part('content', 'none');
}
?>

		</main><!-- #content -->
	</div><!-- #primary -->

<?php 
get_template_part('parts/participe');
get_footer();