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 wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #post #id
ADD COMMENT
Topic
Name
9+7 =