ID; $author_posts_text = blogmarks_get_option('author_posts_text', __('More From Author', 'blogmarks')); $orderby = esc_attr(blogmarks_get_option('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(blogmarks_get_option('no_of_author_posts', 3)), 'ignore_sticky_posts' => 1, 'orderby' => $orderby, 'order' => esc_attr(blogmarks_get_option('author_posts_order', 'desc')), ); $author_posts_query = new WP_Query($author_posts_args); if ($author_posts_query->have_posts()) : $show_author_posts_category = blogmarks_get_option('show_author_posts_category'); if ($show_author_posts_category) { $author_posts_category_style = blogmarks_get_option('author_posts_category_style', 'style_1'); $author_posts_category_color_display = blogmarks_get_option('author_posts_category_color_display', 'none'); $author_posts_category_limit = blogmarks_get_option('author_posts_category_limit', 1); } $author_post_meta = blogmarks_get_option('author_post_meta', array('date')); $author_post_meta_settings = array( 'date_format' => blogmarks_get_option('author_posts_date_format', 'format_2'), 'author_image' => blogmarks_get_option('enable_author_posts_author_image'), 'show_icons' => blogmarks_get_option('show_author_post_meta_icon', true), ); $enable_author_posts_desc = blogmarks_get_option('enable_author_posts_desc'); $author_posts_desc_length = blogmarks_get_option('author_posts_desc_length', 15); $enable_author_posts_read_more_btn = blogmarks_get_option('enable_author_posts_read_more_btn'); $author_posts_read_more_btn_text = blogmarks_get_option('author_posts_read_more_btn_text'); $read_more_style = blogmarks_get_option('author_posts_read_more_style', 'style_2'); $read_more_icon = blogmarks_get_option('author_posts_read_more_icon'); $show_post_format_icon = blogmarks_get_option('show_author_posts_post_format_icon'); ?>