found_posts) : ?>
have_posts()) :
$properties_query->the_post();
/**
* Hook: uplisting_property_loop.
*/
do_action('bizdex_uplisting_property_loop');
bizdex_uplisting_get_template_part('content', 'property');
endwhile;
wp_reset_postdata();
?>
$atts Archive attributes.
* @param string $current_view Active view mode.
*/
do_action('bizdex_uplisting_after_property_loop', $properties_query, $atts, $current_view);
$show_pagination = ($current_view === 'slider')
? 'no'
: (string) ($atts['show_pagination'] ?? 'yes');
if (
$show_pagination === 'yes'
&& $properties_query instanceof WP_Query
&& (int) $properties_query->max_num_pages > 1
) {
$big = 999999999;
// Do not esc_url() the base — & in the base corrupts query strings into #038; fragments.
$base = str_replace((string) $big, '%#%', get_pagenum_link($big, false));
$pagination = paginate_links(
[
'base' => $base,
'format' => '',
'current' => ListingQuery::get_paged(),
'total' => (int) $properties_query->max_num_pages,
'prev_text' => __('Previous', 'advanced-connector-for-uplisting'),
'next_text' => __('Next', 'advanced-connector-for-uplisting'),
'mid_size' => 2,
]
);
if (is_string($pagination) && $pagination !== '') {
printf(
'',
esc_attr__('Properties pagination', 'advanced-connector-for-uplisting'),
wp_kses_post($pagination)
);
}
}
?>