From fe29eb74c44cabc217caba395c9af9d5ce031a72 Mon Sep 17 00:00:00 2001 From: "Hanson.xyz Dev" Date: Tue, 16 Dec 2025 00:10:29 -0600 Subject: [PATCH] Fix server-rendered pagination links to use hash format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update paginate_links() in both property-results.php and ajax-handlers.php to generate #page=N links instead of ?paged=N query parameters. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- wp-content/themes/homeproz/inc/ajax-handlers.php | 10 ++++++---- .../template-parts/property/property-results.php | 8 ++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/wp-content/themes/homeproz/inc/ajax-handlers.php b/wp-content/themes/homeproz/inc/ajax-handlers.php index 76809918..b6a3842d 100755 --- a/wp-content/themes/homeproz/inc/ajax-handlers.php +++ b/wp-content/themes/homeproz/inc/ajax-handlers.php @@ -98,10 +98,10 @@ function homeproz_ajax_filter_properties() { add_query_arg('paged', '%#%', $base_url), + 'base' => $filtered_url . '#page=%#%', 'format' => '', 'current' => max(1, $paged), 'total' => $max_pages, 'prev_text' => '← Previous', 'next_text' => 'Next →', 'type' => 'array', - 'add_args' => $filter_args, )); if ($pagination) : diff --git a/wp-content/themes/homeproz/template-parts/property/property-results.php b/wp-content/themes/homeproz/template-parts/property/property-results.php index b1e410e6..fe72ae67 100755 --- a/wp-content/themes/homeproz/template-parts/property/property-results.php +++ b/wp-content/themes/homeproz/template-parts/property/property-results.php @@ -96,11 +96,11 @@ $paged_properties = mls_get_properties($mls_args); str_replace($big, '%#%', esc_url(get_pagenum_link($big))), - 'format' => '?paged=%#%', + 'base' => $base_url . '#page=%#%', + 'format' => '', 'current' => max(1, $paged), 'total' => $max_pages, 'prev_text' => '← Previous',