max_num_pages < 2) { return; } ?> post_parent) : get_adjacent_post(false, '', true); $next = get_adjacent_post(false, '', false); if (!$next && !$previous) { return; } ?> 1, )); // Count the number of categories that are attached to the posts. $pet_care_clinic_all_the_cool_cats = count($pet_care_clinic_all_the_cool_cats); set_transient('pet_care_clinic_all_the_cool_cats', $pet_care_clinic_all_the_cool_cats); } if ('1' != $pet_care_clinic_all_the_cool_cats) { // This blog has more than 1 category so pet_care_clinic_categorized_blog should return true. return true; } else { // This blog has only 1 category so pet_care_clinic_categorized_blog should return false. return false; } } /** * Flush out the transients used in pet_care_clinic_categorized_blog. */ function pet_care_clinic_category_transient_flusher() { // Like, beat it. Dig? delete_transient('pet_care_clinic_all_the_cool_cats'); } add_action('edit_category', 'pet_care_clinic_category_transient_flusher'); add_action('save_post', 'pet_care_clinic_category_transient_flusher'); /* Font Family*/ function pet_care_clinic_font_family() { $font_url = ''; $font_family = array(); $font_family[] = 'Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i'; $query_args = array( 'family' => rawurlencode(implode('|',$font_family)), ); $font_url = add_query_arg($query_args,'//fonts.googleapis.com/css'); return $font_url; }