*/ ?> <?php if (isset($_REQUEST['committeeid'])) { //secondary loop $postCount = 0; $clearLeft = ''; $connected = new WP_Query(array('connected_type' => 'committees_to_posts', 'connected_items' => $_REQUEST['committeeid'], 'nopaging' => false)); if ($connected->have_posts()) { $committeePost = get_post($_REQUEST['committeeid']); ?> <?php while ($connected->have_posts()) { $connected->the_post(); rotary_output_blogroll(); } } else { ?> <p id="nopostsfound"><?php echo _e('No updates', 'Rotary'); ?> .</p><?php } // Reset Post Data wp_reset_postdata(); } else { ?> <p>This page is only valid for committees</p><?php }
$clearLeft = ''; $connected = new WP_Query(array('connected_type' => 'projects_to_posts', 'connected_items' => $_REQUEST['projectid'], 'nopaging' => false)); ?> <?php if ($connected->have_posts()) { ?> <?php $committeePost = get_post($_REQUEST['committeeid']); ?> <?php while ($connected->have_posts()) { $connected->the_post(); ?> <?php $postCount = rotary_output_blogroll($postCount, $clearLeft); ?> <?php } ?> <?php } else { ?> <p>No posts found.</p> <?php } ?> <?php // Reset Post Data ?> <?php