wordpress/php-fpm/wordpress_files/themes/sd-bushwick/index_a.php

47 lines
1.4 KiB
PHP
Raw Permalink Normal View History

2020-05-22 03:40:23 +02:00
<?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('&laquo; Older Entries') ?></div>
<div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
</div>
</main><!-- #main -->
</div><!-- #primary -->
<?php get_footer();