ID; $author_posts_text = get_theme_mod( 'author_posts_text', __( 'More From Author', 'blogbyte' ) ); $orderby = esc_attr( get_theme_mod( 'author_posts_orderby', 'date' ) ); // Covert id to ID to make it work with query if ( 'id' == $orderby ) { $orderby = 'ID'; } $author_posts_args = array( 'author' => get_the_author_meta( 'ID' ), 'post_type' => 'post', 'post__not_in' => array( $post_id ), 'posts_per_page' => absint( get_theme_mod( 'no_of_author_posts', 3 ) ), 'ignore_sticky_posts' => 1, 'orderby' => $orderby, 'order' => esc_attr( get_theme_mod( 'author_posts_order', 'desc' ) ), ); $author_posts_query = new WP_Query( $author_posts_args ); if ( $author_posts_query->have_posts() ) : $show_author_posts_category = get_theme_mod( 'show_author_posts_category' ); if ( $show_author_posts_category ) { $author_posts_category_style = get_theme_mod( 'author_posts_category_style', 'style_1' ); $author_posts_category_color_display = get_theme_mod( 'author_posts_category_color_display', 'none' ); $author_posts_category_limit = get_theme_mod( 'author_posts_category_limit', 1 ); } $author_post_meta = get_theme_mod( 'author_post_meta', array( 'date' ) ); $author_post_meta_settings = array( 'date_format' => get_theme_mod( 'author_posts_date_format', 'format_2' ), 'author_image' => get_theme_mod( 'enable_author_posts_author_image' ), 'show_icons' => get_theme_mod( 'show_author_post_meta_icon' ), ); $enable_author_posts_desc = get_theme_mod( 'enable_author_posts_desc', true ); $author_posts_desc_length = get_theme_mod( 'author_posts_desc_length', 15 ); $enable_author_posts_read_more_btn = get_theme_mod( 'enable_author_posts_read_more_btn' ); $author_posts_read_more_btn_text = get_theme_mod( 'author_posts_read_more_btn_text' ); $read_more_style = get_theme_mod( 'author_posts_read_more_style', 'style_2' ); $read_more_icon = get_theme_mod( 'author_posts_read_more_icon' ); $show_post_format_icon = get_theme_mod( 'show_author_posts_post_format_icon' ); ?>

have_posts() ) : $author_posts_query->the_post(); ?>
'; blogbyte_post_categories( $author_posts_category_style, $author_posts_category_color_display, $author_posts_category_limit ); echo '
'; endif; ?>

0 ) : ?>