$posts_per_page, 'paged' => $paged_c, ); $posts_qry = new WP_Query( $posts_args ); $max = $posts_qry->max_num_pages; }else{ global $wp_query; $max = $wp_query->max_num_pages; $paged_c = ( get_query_var( 'paged' ) > 1 ) ? get_query_var( 'paged' ) : 1; } $ashlar_default = ashlar_get_default_theme_options(); $ashlar_pagination_layout = esc_html( get_theme_mod( 'ashlar_pagination_layout',$ashlar_default['ashlar_pagination_layout'] ) ); $ashlar_pagination_load_more = esc_html__('Load More Posts','ashlar'); $ashlar_pagination_no_more_posts = esc_html__('No More Posts','ashlar'); if( $ashlar_pagination_layout == 'next-prev' ){ the_posts_navigation([ 'prev_text'=>ashlar_the_theme_svg( 'arrow-left',$return = true ).'', 'next_text'=> ''.ashlar_the_theme_svg( 'arrow-right',$return = true ), ]); }elseif( $ashlar_pagination_layout == 'load-more' || $ashlar_pagination_layout == 'auto-load' ){ ?>
'post','post_status' => 'publish','posts_per_page' => 1, 'post__in' => array( absint( $postid ) ) ) ); ashlar_disable_post_views(); ashlar_disable_post_read_time(); if ( $post_single_next_posts->have_posts() ) : while ( $post_single_next_posts->have_posts() ) : $post_single_next_posts->the_post(); $ashlar_ed_feature_image = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_feature_image', true ) ); $ashlar_ed_post_views = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_views', true ) ); $ashlar_ed_post_read_time = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_read_time', true ) ); $ashlar_ed_post_like_dislike = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_like_dislike', true ) ); $ashlar_ed_post_author_box = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_author_box', true ) ); $ashlar_ed_post_social_share = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_social_share', true ) ); $ashlar_ed_post_reaction = esc_html( get_post_meta( get_the_ID(), 'ashlar_ed_post_reaction', true ) ); ob_start(); ?>