%2$s'; $archive_year = get_the_time('Y'); $archive_month = get_the_time('m'); $archive_day = get_the_time('d'); if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( DATE_W3C ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( DATE_W3C ) ), esc_html( get_the_modified_date() ) ); $posted_on = sprintf( /* translators: %s: post date. */ '%s', '' . $time_string . '' ); echo '
' . $posted_on . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'buzz_magazine_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function buzz_magazine_posted_by() { $byline = sprintf( /* translators: %s: post author. */ '%s', '
' . esc_html( get_the_author() ) . '
' ); echo $byline ; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'buzz_magazine_category' ) ): /** * */ function buzz_magazine_category(){ // Hide category and tag text for pages. global $post; $post_id = $post->ID; $categories_list = get_the_category($post_id); $tags_list = get_the_tags($post_id); $color_option_id = 'category_color_option_'; if ( ! empty( $categories_list ) ) { ?>
name; $cat_id = $cat_data->term_id; $cat_link = get_category_link( $cat_id ); ?>
name; $tag_id = $tag_data->term_id; $tag_link = get_tag_link( $tag_id ); $tag_color_option_id = 'tag_color_option_'; ?>
'; comments_popup_link( sprintf( wp_kses( /* translators: %s: post title */ __( 'Leave a Comment on %s', 'buzz-magazine' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ) ); echo ''; } edit_post_link( sprintf( wp_kses( /* translators: %s: Name of current post. Only visible to screen readers */ __( 'Edit %s', 'buzz-magazine' ), array( 'span' => array( 'class' => array(), ), ) ), wp_kses_post( get_the_title() ) ), '', '' ); } endif; /** * Modifying Excerpt Length * @return int */ function buzz_magazine_excerpt_length(){ return 10; } add_filter('excerpt_length', 'buzz_magazine_excerpt_length',999);