>
$wo_apg_post_type, 'posts_per_page' => $wo_apg_post_per_page, 'paged' => $wo_apg_url_page_number, 'order' => $wo_apg_post_order, 'orderby' => $wo_apg_post_orderby, ); $wo_apg_query = new WP_Query( $wo_apg_args ); if ( $wo_apg_query->have_posts() ) { while ( $wo_apg_query->have_posts() ) { $wo_apg_query->the_post(); $wo_apg_post_id = get_the_ID(); $wo_apg_image_id = get_post_thumbnail_id( $wo_apg_post_id ); $wo_apg_image = wp_get_attachment_image_url( $wo_apg_image_id, 'full' ); $wo_apg_image_alt = get_post_meta( $wo_apg_image_id, '_wp_attachment_image_alt', true ); $wo_apg_read_time = WO_APG_Init::calculate_read_time( get_the_content() ); $wo_apg_placeholder = plugin_dir_url( __FILE__ ) . 'assets/images/placeholder.svg'; $wo_apg_image_src = $wo_apg_image ? $wo_apg_image : $wo_apg_placeholder; $wo_apg_image_alt = $wo_apg_image_alt ? $wo_apg_image_alt : get_the_title(); ?>
< class="wo-advance-post-grid-image"> <?php echo esc_attr( $wo_apg_image_alt ); ?> >
term_id ) ) . '" class="wo-advance-post-grid-single-cat">' . esc_html( $wo_apg_category->name ) . ''; } ?>
< class="wo-advance-post-grid-heading">

>

max_num_pages, array( 'showitems' => 4, 'first_last' => true, 'prev_next' => true, 'paged' => $wo_apg_url_page_number, 'class_name' => 'custom-pagination', ) ); } ?>