Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

wp_query post by category id

    $args=array(
    'posts_per_page' => 50, 
    'post_type' => 'my_custom_type'
    'cat' => $cat_id,
);
$wp_query = new WP_Query( $args );
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #post #category #id
ADD COMMENT
Topic
Name
8+2 =