Back

WP Show Posts on Any Page Code

Copy Below Code View As A Text File Show Text Only Show API Edit Code
                            

<?php $args = array( 'post_type' => 'post' ); $post_query = new WP_Query($args); if($post_query->have_posts() ) { while($post_query->have_posts() ) { $post_query->the_post(); ?> <h2><?php the_title(); ?></h2> <?php } } ?>