kureeru
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Search by category doesn’t workI use it for search page by term and for loading articles and there is no issue in these pages, the archive category page is the only one that doesn’t work.
Tried to copy/paste all the code in the page you linked, and it seems to work finaly (I supposed I did it wrong the last time).Thank you for your help!
Can I ask you to remove the link to my website in your previous post please?Thanks a lot again, have a nice day!
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Search by category doesn’t workThe website was loading right when I tried to remove the shortcode and put the template repeater code instead.
It’s that way that I found that the Ajax load more code seems to stop the loading of the page.
Without this code, the page is fully loaded.Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Search by category doesn’t workOf course (I’ll edit it when the problem is solved) :
- This reply was modified 5 years, 11 months ago by kureeru. Reason: website url
Forum: Plugins
In reply to: [WordPress Infinite Scroll - Ajax Load More] Search by category doesn’t workHi @dcooney,
Thanks for your help!
Yes it’s a category archive, sorry I forgot to precise it!
I tried your code and the link above but it doesn’t seem to solve the issue unfortunately.Hi @dcooney,
Oh I didn’t know! I tested it and it works!
Thanks again for your help, all issues are clear now!
Have a nice day
Hi @dcooney !
Thanks for your answers, my first issue is resolved !
For the second issue, I tested with a simple form :
<form role="search" method="get" id="searchform" class="searchform" action="<?php echo home_url( '/' ); ?>"> <div> <label class="screen-reader-text" for="s">Search for:</label> <input type="text" value="" name="s" id="s" /> <input type="submit" id="searchsubmit" value="Search" /> </div> </form>
But I get the same errors that the WordPress search widget.
This is how I display the posts in the search.php :
<?php if ( have_posts() ) : while ( have_posts() ) : the_post();?> <?php endwhile; ?> <?php $term = $_GET['term'];if(empty($term)){$term = 'test';} ?> <?php echo do_shortcode('[ajax_load_more search="'. $term .'" post_type="post" posts_per_page="6" scroll="false" button_label="Voir plus d\'articles" button_loading_label="Chargement..."]'); ?> <?php else : echo 'Not posts found'; ?> <?php endif; ?>
I hope it can help you to understand where my problem can come from.
Again thanks for your help !