forked from luisdalmolin/wordpress-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
39 lines (32 loc) · 740 Bytes
/
index.php
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
/**
* Pagina inicial do template
*
* @author Seu nome <seu@email>
* @subpackage template
*/
// header
get_header();
// posts
while( have_posts() ) :
the_post();
?>
<div class="post">
<div class="post-title">
<h2>
<a href="<?php the_permalink() ?>">
<?php the_title(); ?>
</a>
</h2>
</div><!-- .post-title -->
<div class="post-content">
<?php
// resumo do conteudo (http://codex.wordpress.org/Function_Reference/the_excerpt)
the_excerpt();
?>
</div><!-- .post-content -->
</div><!-- .post -->
<?php
endwhile;
// footer
get_footer();