'post', 'posts_orderby' => 'date', 'posts_order' => 'DESC', 'posts_ignore_sticky_posts' => 'no', 'posts_only_with_featured_image' => 'no', 'posts_select_date' => '', 'posts_exclude_by' => [], 'posts_include_by' => [], 'posts_per_page' => isset( $_POST['per_page'] ) ? absint( $_POST['per_page'] ) : 0, 'posts_offset' => isset( $_POST['offset'] ) ? absint( $_POST['offset'] ) : 0, ], $settings ); $ajaxposts = $this->query_args( $settings ); ob_start(); $found_posts = false; if ( $ajaxposts->have_posts() ) { $placeholder = \Elementor\Utils::get_placeholder_image_src(); while ( $ajaxposts->have_posts() ) { $ajaxposts->the_post(); $found_posts = true; $title = get_the_title(); $post_link = esc_url( get_permalink() ); $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(), $settings['primary_thumbnail_size'] ?? 'thumbnail' ); $image_src = $image_src ? $image_src[0] : $placeholder; $title_tag = Utils::get_valid_html_tag($settings['title_tags']); ?>
class="upk-item">
<?php echo esc_attr( $title ); ?>
'true', 'class' => 'fa-fw' ] ); ?>
< class="upk-title"> >
$found_posts, 'markup' => $found_posts ? $markup : esc_html__( 'No more found', 'ultimate-post-kit' ), ] ); } }