current_component == BP_DEDICATION_SLUG )) { $dedication_orderby = "rand"; $category_name = 'dedication'; $post_status = array('publish'); $args = array( 'post_type' => array('post'), 'orderby' => $dedication_orderby, 'posts_per_page' => -1, 'post_status' => $post_status, 'category_name' => $category_name, ); query_posts($args); } if (is_singular()) { // } if (have_posts()) { ?>