wordpress/php-fpm/wordpress_files/themes/sd-bushwick/index_l.php
2020-05-22 01:40:23 +00:00

48 lines
1.2 KiB
PHP

<?php
/**
/**
* Template Name: Contenido Local
*
* @package Bushwick
*/
get_header(); ?>
<div id="primary" class="content-area">
<?php get_template_part( 'navigation' ); ?>
<main id="main" class="site-main" role="main">
<?php // LOOP LOCAL CONTENT
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$orig_query = $wp_query;
$wp_query = null;
$args = array(
'author__not_in'=> array(142), //Authors's id's you like to not include
'posts_per_page' => '5',
'paged' => $paged,
//'offset' => '3',
);
$wp_query = new WP_Query($args);
if($wp_query->have_posts()) :
while($wp_query->have_posts()) :
$wp_query->the_post();
get_template_part( 'content', 'preview' );
endwhile;
else:
echo "Oops, there are no posts.";
endif;
?>
<hr>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer();