Answers for "display all custom post type ids"

0

display all custom post type ids

$args = array( 'post_type' => 'case_studies');

$loop = new WP_Query( $args );
while ( $loop->have_posts() ) : $loop->the_post();
    the_ID();
endwhile;
Posted by: Guest on April-23-2021

Code answers related to "display all custom post type ids"

Browse Popular Code Answers by Language