Created
April 4, 2017 02:41
-
-
Save guilhermealveslopes/82f1083cbe4bd5dc54d3ee4b4e423ab1 to your computer and use it in GitHub Desktop.
Wordpress Loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $user_id = get_current_user_id(); | |
$args=array( | |
'post_type' => 'post', | |
'posts_per_page' => -1, | |
'author' => $user_id | |
); | |
$wp_query = new WP_Query($args); while ( have_posts() ) : the_post(); ?> | |
<!-- Conteudo --> | |
<?php endwhile; ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment