max_num_pages < 2 ) { return; } ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> %2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string .= ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); ?> %2$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ); ?> %2$s', esc_url( get_permalink() ), $time_string ); ?> 1, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'all_the_cool_cats', $all_the_cool_cats ); } if ( '1' != $all_the_cool_cats ) { // This blog has more than 1 category so actions_categorized_blog should return true. return true; } else { // This blog has only 1 category so actions_categorized_blog should return false. return false; } } /** * Flush out the transients used in actions_categorized_blog. */ function actions_category_transient_flusher() { // Like, beat it. Dig? delete_transient( 'all_the_cool_cats' ); } add_action( 'edit_category', 'actions_category_transient_flusher' ); add_action( 'save_post', 'actions_category_transient_flusher' ); if ( ! function_exists( 'actions_post_thumbnail' ) ) { /** * Display post thumbnail * @var $size thumbnail size. thumbnail|medium|large|full|$custom * @uses has_post_thumbnail() * @uses the_post_thumbnail * @param string $size * @since 1.5.0 */ function actions_post_thumbnail( $size ) { if ( has_post_thumbnail() ) { ?> %1$s %2$s', _x( 'Categories', 'Used before category names.', 'actions' ), $categories_list ); } $tags_list = get_the_tag_list( '', _x( ', ', 'Used between list items, there is a space after the comma.', 'actions' ) ); if ( $tags_list ) { printf( '%1$s %2$s', _x( 'Tags', 'Used before tag names.', 'actions' ), $tags_list ); } } } function actions_excerpt_more($more) { global $post; return ' ...Continue Reading'; } add_filter('excerpt_more', 'actions_excerpt_more');