Pagination dont work
-
Expected behavior
Clicking pagination links inside the configured results container should update only that container via AJAX (same as filtering), while URL changes to/page/2/, etc.Actual behavior
A full page reload occurs. No preloader/overlay from the plugin appears and no XHR request is sent.Environment
- WordPress: 6.6.x (latest stable)
- Filter Everything: Free, latest from wp.org
- Theme: custom; archive template
archive-news.phpfor CPTnews(has_archive = true) - Cache/JS/CSS optimizers: none
- On your public demo I observe the same (pagination does a full reload).
Filter Everything settings
- Use AJAX for filters: enabled
- HTML id or class of Posts Container:
#newsess - Debug mode: enabled
- Filter widget
[fe_widget id="5155"]is rendered outside the results container
Template markup (simplified)
<?php echo do_shortcode('[fe_widget id="5155"]'); ?>
<?php if (have_posts()) : ?>
<div id="newsess">
<div class="cards-grid">
<?php while (have_posts()) : the_post(); endwhile; ?>
</div>
<?php the_posts_pagination([
'mid_size' => 1,
'prev_text' => '←',
'next_text' => '→',
]); ?>
</div>
<?php else: ?>
<p>Post's not found</p>
<?php endif; ?>What I already tried
- Ensured the container
#newsesswraps both the posts list and the pagination; filters are outside this container. - Removed my outer
<nav class="pagination">wrapper and kept the rawthe_posts_pagination()output to avoid duplicate.paginationelements. - Confirmed
id="newsess"is unique on the page. - Browser console: no errors. Network panel: clicking a page number triggers a Document request; no XHR with FE params appears.
- Tested clicking pagination with active filters and without — full reload in both cases.
- No JS defer/delay and no performance plugins.
Questions
- Should standard
the_posts_pagination()work in AJAX mode whenever AJAX is enabled and the container is correct, or is AJAX pagination supposed to work only after at least one filter/sort is active? - Are there any required classes/selectors in the pagination markup that FE relies on?
- Is an additional shortcode/widget needed for AJAX pagination in the Free version, or should the current setup work?
- If this is a bug, could you suggest a temporary workaround (e.g., a hook or explicit selector) to force AJAX handling of pagination links?
Happy to provide the full rendered pagination HTML, a system report, or access to a staging site if that helps. Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Pagination dont work’ is closed to new replies.