Search by category doesn’t work
-
Hello,
I have an issue with the search by categories results.
First of all, the search did very well in localhost and when I pulled my website into preprod the search by category didn’t work anymore.
Here is the code that I display :<?php if ( have_posts() ) : while ( have_posts() ) : the_post();?> <?php endwhile; ?> <?php $cat = get_query_var('cat'); $category = get_category ($cat); echo do_shortcode('[ajax_load_more category="'.$category->slug.'" cache="true" cache_id="cache-'.$category->slug.'" seo="true" post_type="post" posts_per_page="6" scroll="false" button_label="Voir plus d\'articles" button_loading_label="Chargement..."]'); ?> <?php else : ?> <p><?php echo 'No results'; ?></p> <?php endif; ?>
I tried to replace this code by the code in the repeater template and it worked, so the error seems to come by the plugin.
In my page, nothing is displayed after the div which is supposed to contain the articles, nothing appears in the code (the #ajax-load-more div isn’t here) and there is no error in the console.
Can you help me with this?
Have a nice day
Viewing 10 replies - 1 through 10 (of 10 total)
Viewing 10 replies - 1 through 10 (of 10 total)
- The topic ‘Search by category doesn’t work’ is closed to new replies.