</p> </div> <?php } // BuddyPress forces comments closed on BP pages. Put the filter back. add_filter('comments_open', 'bp_comments_open', 10, 2); } else { if (ccgn_is_post_edit()) { ccgn_get_post_form(bp_get_group_id()); } else { // Must be the narrative list ?> <!-- This is the narrative list template, narrative list portion. --> <?php $q = new WP_Query(ccgn_get_query()); ?> <?php if ($q->have_posts()) { ?> <?php do_action('bp_before_group_blog_content'); ?> <div class="pagination no-ajax"> <div id="posts-count" class="pag-count"> <!-- TODO: pagination --> <?php //bcg_posts_pagination_count($q) ?>
/** * Get an array of narratives for a particular group. * @param group_id - integer * @param status - empty, 'publish' or 'draft' * @return array of post objects */ function ccgn_get_narratives_for_group($group_id = null, $status = null) { $posts = get_posts(ccgn_get_query($group_id, $status)); return $posts; }