Return to Snippet

Revision: 69773
at September 2, 2015 02:57 by alanyoshida


Initial Code
<!-- QUERY PERSONALIZADA -->
<?php
// The Query
$the_query = new WP_Query( $args );
// The Loop
while ( $the_query->have_posts() ) : $the_query->the_post();
setup_postdata($post); 
	echo '<li>';
	the_title();
	echo '</li>';
endwhile;
// Reset Post Data
wp_reset_postdata();
?>

Initial URL

                                

Initial Description
Wordpress Loop - WP_Query

Initial Title
Wordpress Loop - WP_Query

Initial Tags
wordpress

Initial Language
PHP