-
Notifications
You must be signed in to change notification settings - Fork 0
/
page-eventos.php
51 lines (41 loc) · 1.49 KB
/
page-eventos.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
40
41
42
43
44
45
46
47
48
49
50
51
<?php /* Template name: Eventos */ get_header( 'eventos' ); ?>
<div id="conteudo-eventos">
<div id="esquerda-eventos">
<div id="titulo-eventos">
</div><!-- #titulo-eventos -->
<div id="resumo-eventos">
<!-- Inicio Loop -->
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
<!-- Fim Loop -->
</div><!-- #resumo-eventos -->
<div id="post-eventos">
<?php
$args = array( 'post_type' => 'eventos', 'posts_per_page' => 10 );
$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div id="cada-eventos">
<div id="thumb-eventos">
<a href="<?php the_permalink() ?>" rel="bookmark">
<?php if ( has_post_thumbnail()) the_post_thumbnail('thumb-eventos'); ?>
</a>
</div>
<div id="titulos-cada-eventos">
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
</div>
<div id="excerpt-eventos">
<?php echo excerpt( 25 ); ?>
</div>
<div id="mais-eventos">
<a href="<?php the_permalink() ?>">Leia mais>></a>
</div>
</div><!-- #cada-eventos -->
<?php endwhile; ?>
<!-- Fim Loop -->
<div class="saibamais-post-eventos"></div>
</div><!-- #post-eventos -->
</div><!-- #esquerda-eventos -->
<?php get_sidebar( 'eventos' ); ?>
</div><!-- #conteudo-eventos -->
<?php get_footer( 'ocirco' ); ?>