Pagination
-
Hello. I have a problem with pagination. Set the filter on Ajax. The filter itself works, but if you click on the next page, nothing happens.
Help me please.The page I need help with: [log in to see the link]
-
Hello
Please check your browser console.
Your site has js error
I disabled this script and it did not affect the result
Hello
Read this please – https://wp-filter.com/howto/pagination-doesn-work-what-to-do/
my shortcode – [mdf_results_by_ajax shortcode=”mdf_custom template=any/project post_type=project orderby=date order=desc page=1 per_page=15 pagination=b meta_data_filter_cat=25″ animate=1 animate_target=.showcase]
The template is in wp-content/themes/cehkamnya/mdf_templates/any/project – file index.php and css/styles.css
the filter is displayed by the widget
I followed all the instructions on the page https://wp-filter.com/howto/pagination-doesn-work-what-to-do/
But nothing helped me, maybe I was wrong somewhere?
this is the code of the theme
<?php if (!defined('ABSPATH')) die('No direct access allowed'); ?> <?php wp_enqueue_style('mdf_project', get_template_directory_uri() . '/mdf_templates/any/project/css/styles.css'); global $mdf_loop; ?> <div id="primary" class="content-area"> <main id="main" class="site-main"> <div class="flex"> <?php if ( is_active_sidebar( 'sidebar_filter' ) ) : ?> <div id="sidebar_filter" class="sidebar"> <?php dynamic_sidebar( 'sidebar_filter' ); ?> </div> <?php endif; ?> <div class="container showcase"> <?php while ($mdf_loop->have_posts()) : $mdf_loop->the_post(); $post_thumbnail_id = get_post_thumbnail_id($post->ID); $image = wp_get_attachment_image_src($post_thumbnail_id); ?> <article id="post-<?php the_ID(); ?>"> <div class="project-card"> <div class="project-img"> <a class="modal-link" href="<?php the_permalink() ?>"><?php the_post_thumbnail(); ?></a> </div> <div class="project-info"> <h3> <a class="modal-link" href="<?php the_permalink() ?>"><?php the_title(); ?></a> </h3> <?php the_content(); ?> </div> </div> </article> <?php if($mdf_loop->found_posts==0){ print "Результатов не найдено"; } endwhile; // end of the loop. ?> </div> </div> </main> </div>I found that if you remove the filter widget, the pagination works as soon as the widget with the filter add pagination stops working
Hello
I answered you on email.
Hi.
I have not received a letter from you, in spam, too. my mail alexrud-a@yandex.ru
Please send againI also found that the transition to another page works if after clicking on the page link, click the filter button
Hello
This email – https://c2n.me/40Lwi7B.png
The topic ‘Pagination’ is closed to new replies.