/ Published in: PHP
Wordpress Loop - WP_Query
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<!-- 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(); ?>