Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * World's simplest secondary The Loop
- */
- $posts = get_posts( $args );
- if ( count( $posts ) ) :
- global $post;
- foreach ( $posts as $post ) :
- setup_postdata( $post );
- the_title( '<h1>', '</h1>' );
- endforeach;
- wp_reset_postdata();
- else :
- // Show something to notify there's no post
- endif;
Add Comment
Please, Sign In to add comment