40 lines
726 B
PHP
40 lines
726 B
PHP
<?php /* Template Name: arxiu KEJ */ ?>
|
|
<?php get_header('kej');?>
|
|
|
|
|
|
<div class="titol_post" style="background-image: url('<?php echo get_theme_file_uri('img/fons-general.jpeg');?>');" />
|
|
<div class="titol-post-text">
|
|
<h1><?php pll_e("Arxiu de notĂcies");?></h1>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="principal">
|
|
<div>
|
|
<?php
|
|
|
|
|
|
$args = array(
|
|
'post_type' => 'post',
|
|
'category_name' => 'noticies-kej',
|
|
'posts_per_page' => 20,
|
|
'orderby' => 'date',
|
|
'order' => 'DESC'
|
|
);
|
|
$consulta = new WP_Query($args);
|
|
while ($consulta->have_posts()):
|
|
$consulta->the_post();
|
|
the_title('<h2><a href="'.get_post_permalink().'">','</a></h2>');
|
|
the_excerpt();
|
|
|
|
endwhile;
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php get_footer();?>
|