Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $current_user = wp_get_current_user();
- $conteudo = $current_user->conteudou;
- $args = array (
- 'post_type' => 'estatisticas',
- 'posts_per_page' => '10',
- 'meta_query' => array(
- array( 'key' => $conteudo,
- 'value' => '1',
- 'compare' => '='),
- )
- );
- $the_query = new WP_Query( $args );
- ?>
- <?php if ( $the_query->have_posts() ) : ?>
- <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
- <tr>
- <td><?php the_title();?></td>
- <td>
- <?php the_field('categoriae');?>
- </td>
- <td><?php the_time('d/m/Y')?></td>
- <td><a href="<?php the_field('arquivo');?>" class="btndown">Download</a></td>
- </tr>
- <?php endwhile; ?>
- <?php wp_reset_postdata(); ?>
- <?php else : ?>
- <p><?php esc_html_e( 'Não existe posts nesse momento' ); ?></p>
- <?php endif; ?>
Add Comment
Please, Sign In to add comment