-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory.php
More file actions
32 lines (25 loc) · 1020 Bytes
/
Copy pathcategory.php
File metadata and controls
32 lines (25 loc) · 1020 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php get_header(); ?>
<!-- TEMPLATE CATEGORY.PHP -->
<main class="container">
<div class="row">
<div id="contenuti" class="col-md-12">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div <?php post_class('articolo'); ?>>
<h2><a href="<?php the_permalink(); ?> "><?php the_title(); ?></a></h2>
<!-- immagine in evidenza -->
<?php the_post_thumbnail('full',array('class' => 'img-responsive')); ?>
<?php the_excerpt() ?>
<a href="<?php the_permalink(); ?>"><span class="readmore">Continua a leggere »</span></a>
<hr>
</div>
</div>
<?php endwhile; else: ?>
<div class="articolo">
<h2>Attenzione!</h2>
<p>Nessun elemento trovato</p>
</div>
<?php endif; ?>
<div class="navigation text-center"><?php pagination_nav(); ?></div>
</div>
</main>
<?php get_footer(); ?>