Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp_query post id

$args = array(
	'post_type' => 'my_custom_type'
	'cat' => $cat_id,
);

$wp_query = new WP_Query( $args );

$wp_query->post->ID
Source by developer.wordpress.org #
 
PREVIOUS NEXT
Tagged: #post #id
ADD COMMENT
Topic
Name
2+4 =