Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $args = array(
- 'post_type' => 'my-product',
- );
- $the_query = new WP_Query($args);
- while ($the_query->have_posts()) : $the_query->the_post();
- the_title();
- endwhile;
- wp_reset_postdata();
- wp_reset_query();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement