true, '_builtin' => false ); $output = 'names'; // names or objects, note names is the default $operator = 'and'; // 'and' or 'or' $post_types = array_merge($post_types, get_post_types( $args, $output, $operator )); return $post_types; } endif; /* * Return number of stickys for given query */ if (!function_exists('sf_impact_count_sticky')): function sf_impact_count_sticky($category = NULL) { $args = array( 'post__in' => get_option( 'sticky_posts' ), 'showposts' => '3' ); if ($category) $args['cat'] = $category; $the_query = new WP_Query( $args ); $count = $the_query->post_count; return $count; } endif; if (!function_exists('sf_impact_posts_by_category')): function sf_impact_posts_by_category($category) { $stickycount = sf_impact_count_sticky($category); $args = array( 'post_type' => 'post', 'order' => 'DESC', 'orderby' => 'post_date', 'cat' => $category, ); $the_query = new WP_Query($args); sf_impact_posts($the_query, $stickycount); } endif; ?>