temwp-kea/agenda.php

41 líneas
703 B
PHP
Original Vista normal Històric

2023-05-21 23:02:51 +02:00
<?php /* Template Name: KE */ ?>
<?php get_header();?>
<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("Kataluna Esperantisto");?></h1>
</div>
</div>
<div id="principal">
<div>
<?php
$args = array(
'post_type' => 'publicacions',
'cat' => '32',
'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();?>