-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
39 lines (30 loc) · 1.02 KB
/
Copy pathindex.php
File metadata and controls
39 lines (30 loc) · 1.02 KB
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
33
34
35
36
37
38
39
<?php get_header(); ?>
<!-- INDEX.PHP -->
<main class="container">
<div class="row">
<div id="contenuti" class="col-md-12">
<!--start Wordpress loop -->
<?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>
<?php the_content() ?>
<p><small>Scritto da <strong><?php the_author_posts_link(); ?></strong> il <?php the_time('d F Y'); ?></small></p>
<?php the_tags(
"<p><small>Argomenti: ",
", ",
"</small></p>"
); ?>
</div>
<?php endwhile; else: ?>
<!-- alternative text-->
<div class="articolo">
<h2>Attenzione!</h2>
<p>Nessun elemento trovato</p>
</div>
<?php endif; ?>
<hr>
<!-- end loop Wordpress -->
</div>
</div>
</main>
<?php get_footer(); ?>