%1$s %2$s %3$s'; if(is_single()){ $time_string = ''; } $time_string = sprintf( $time_string, esc_html( get_the_time('d') ), esc_html( get_the_time('M') ), esc_html( get_the_time('Y') ) ); $posted_on = sprintf( /* translators: %s: post date. */ '%s', '' . $time_string . '' ); echo '' . $posted_on . ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bizes_posted_in' ) ) : /** * Prints HTML with meta information for the categories */ function bizes_posted_in() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( esc_html__( ', ', 'bizes' ) ); if ( $categories_list ) { /* translators: 1: list of categories. */ printf( ' ' . '%1$s' . '', $categories_list ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } } } endif; if ( ! function_exists( 'bizes_posted_by' ) ) : /** * Prints HTML with meta information for the current author. */ function bizes_posted_by() { $author_name = get_the_author(); $author_url = get_author_posts_url( get_the_author_meta( 'ID' ) ); $byline = '' . esc_html( $author_name ) . ''; echo ''; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped } endif; if ( ! function_exists( 'bizes_post_comments' ) ) : /** * Prints HTML with meta information for the Comments */ function bizes_post_comments() { if ( ! post_password_required() && ( comments_open() || '0' != get_comments_number() ) ) : ?>
ID ) ); ?> true, 'update_post_meta_cache' => false, 'update_post_term_cache' => false, 'ignore_sticky_posts' => 1, 'orderby' => 'rand', 'post__not_in' => array( $post->ID ), 'posts_per_page' => $posts_count, ); // Related by categories. if ( get_theme_mod( 'related_post_choice', 'categories' ) == 'categories' ) { $cats = wp_get_post_categories( $post->ID, array( 'fields' => 'ids' ) ); $args['category__in'] = $cats; } // Related by tags. if ( get_theme_mod( 'related_post_choice', 'categories' ) == 'tags' ) { $tags = wp_get_post_tags( $post->ID, array( 'fields' => 'ids' ) ); $args['tag__in'] = $tags; if ( ! $tags ) { $break = true; } } $query = ! isset( $break ) ? new WP_Query( $args ) : new WP_Query(); return $query; } endif; if ( ! function_exists( 'wp_body_open' ) ) : /** * Shim for sites older than 5.2. * * @link https://core.trac.wordpress.org/ticket/12563 */ function wp_body_open() { do_action( 'wp_body_open' ); } endif;