Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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;
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #display #custom #post #type #ids
ADD COMMENT
Topic
Name
3+7 =