mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-14 23:21:07 +01:00
47 lines
1.4 KiB
PHP
47 lines
1.4 KiB
PHP
<?php
|
|
/**
|
|
/**
|
|
* Template Name: Contenido Agredado
|
|
*
|
|
* @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 AGGREGATED CONTENT
|
|
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
|
|
$orig_query = $wp_query;
|
|
$wp_query = null;
|
|
$args = array(
|
|
'author__in'=> array(142), //Authors's id's you like to include (aggregated content is imported as this user)
|
|
'posts_per_page' => '10',
|
|
'paged' => $paged,
|
|
//'offset' => '7',
|
|
);
|
|
echo '<div class="section-title">contenidos agregados</div><hr class="section-separator" />';
|
|
|
|
$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();
|