Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <section class="mes1">
- <h1 class="month">|<?php echo 'Abril';?></h1>
- <?php $trimestre1 = null; $trimestre2 = null; $trimestre3 = null;
- $abril = '04'; $maio = '05'; $junho = '06';
- $args1 = array('post_type' => 'event','posts_per_page' => -1,'cat' => '-16,-17',
- 'meta_query' => array(
- array('key' => '_start_month','value' => $abril,'compare' => 'IN'),
- array('key' => '_start_year','value' => $today_year,'compare' => '=')
- ),
- 'meta_key' => '_start_eventtimestamp','orderby' => 'meta_value_num','order'=> 'ASC');
- $trimestre1 = new WP_Query($args1);
- if ( $trimestre1->have_posts() ) :
- while ( $trimestre1->have_posts() ) : $trimestre1->the_post();?>
- <article>
- <h1 class="hideHeading"><?php the_title(); ?></h1>
- <ul>
- <li class="category"><p>|category</p></li>
- <li class="date"><p><date</p></li>
- <li class="title"><p><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></p></li>
- </ul>
- <?php if ( has_post_thumbnail() ) {?>
- <div class="imagem"><a href="<?php the_permalink() ?>"><?php the_post_thumbnail('thumbnail'); ?>
- </a></div>
- <?php } else{?>
- <div class="imagem"><a href="<?php the_permalink() ?>"><img src="<?php bloginfo('template_url');
- ?>/images/defaultThumb.jpg"></a></div>
- <?php }?>
- </article>
- <?php endwhile; ?><?php else : ?><style type="text/css">section.mes3 {display:none}</style>
- <?php endif; $trimestre1 = null;$trimestre2 = null;$trimestre3 = null;wp_reset_query();
- wp_reset_postdata();?>
- </section><section class="mes2">
- <h1 class="month">|<?php echo 'Maio';?></h1>
- <?php $trimestre1 = null; $trimestre2 = null; $trimestre3 = null;
- $args2 = array('post_type' => 'event','posts_per_page' => -1,'cat' => '-16,-17',
- 'meta_query' => array(array('key' => '_start_month','value' => $maio,
- 'compare' => 'IN'),
- array('key' => '_start_year','value' => $today_year,
- 'compare' => '=')),
- 'meta_key' => '_start_eventtimestamp','orderby' => 'meta_value_num',
- 'order'=> 'ASC',
- $trimestre2 = new WP_Query($args2);if ( $trimestre2->have_posts() ) :
- while ( $trimestre2->have_posts() ) : $trimestre2->the_post();?>
- <article>
- <h1 class="hideHeading"><?php the_title(); ?></h1>
- <ul>
- <li class="category"><p >|category</p></li>
- <li class="date"><p>date</p></li>
- <li class="title"><p><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></p></li>
- </ul>
- <?php if ( has_post_thumbnail() ) {?><div class="imagem"><a href="<?php the_permalink() ?>"><?php
- the_post_thumbnail('thumbnail'); ?></a></div>
- <?php } else{?><div class="imagem"><a href="<?php the_permalink() ?>"><img src="<?php
- bloginfo('template_url'); ?>/images/defaultThumb.jpg"></a></div>
- <?php }?></article><?php endwhile; ?>
- <?php else : ?><style type="text/css">section.mes2 {display:none}</style>
- <?php endif;$trimestre1 = null; $trimestre2 = null; $trimestre3 = null; wp_reset_query();
- wp_reset_postdata();?></section>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement