is_search && !$query->is_page && !$query->is_archive) { $oldset = $query->get('cat'); $is_member = ''; if (!empty($oldset)) { $excludeset = $oldset.',-'.$members_post_category; } else { $excludeset = '-'.$members_post_category; } if ( !empty($current_user->ID) ) { $is_member = get_usermeta($current_user->ID,'comicpress-is-member'); } if ($is_member != 'yes' || empty($is_member)) { $query->set('cat',$excludeset); } } return $query; } function shortcode_for_comicpress_members_only( $atts, $content = null ) { global $post, $userdata, $profileuser, $current_user, $errormsg; $returninfo = '
'.__('There is Members Only content here.
To view this content you need to be a member of this site.','comicpress').'
', '', $content); $content = str_replace('
', '', $content); $returninfo = "$content
\r\n