5, 'tipo' => '' ), $atts, 'mostra-prox-eventos'); $args = array( 'post_type' => 'evento', 'posts_per_page' => intval($atts['limit']), 'meta_key' => 'data_evento', 'orderby' => 'meta_value', 'order' => 'ASC', 'meta_query' => array( array( 'key' => 'data_evento', 'value' => date('Y-m-d'), 'compare' => '>=', 'type' => 'DATE' ) ) ); if (!empty($atts['tipo'])) { $args['tax_query'] = array( array( 'taxonomy' => 'tipo_evento', 'field' => 'slug', 'terms' => sanitize_text_field($atts['tipo']) ) ); } $eventos = new WP_Query($args); ob_start(); ?>

Próximos Eventos

render_calendario($atts); ?>
render_proximos_eventos($atts); ?>