Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $args = array( 'post_type' => 'ADS', 'posts_per_page' => 10, 'orderby' => 'rand' );
- $loop = new WP_Query( $args );
- while ( $loop->have_posts() ) : $loop->the_post();
- the_title();
- echo '<div class="entry-content">';
- the_content();
- echo '</div>';
- endwhile;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement