mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
48 lines
1.2 KiB
PHP
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('« Older Entries') ?></div>
|
||
|
<div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
|
||
|
</div>
|
||
|
</main><!-- #main -->
|
||
|
</div><!-- #primary -->
|
||
|
|
||
|
<?php get_footer();
|