Forums › Forums › Search & Filter Pro › Query display only one result
- This topic has 18 replies, 2 voices, and was last updated 5 years, 9 months ago by
Trevor.
-
Anonymous(Private) September 10, 2019 at 11:42 pm #220699
Hi,
I try to display the result with ajax, but even if I didn’t make a search the query show me only one result and it’s look like it’s the last one.
https://intoinc.mebdev.ca/realisation/
And the ACF fields doesn’t work.
Here is my query:
<?php echo do_shortcode('[searchandfilter id="256"]'); $loop = array('post_type' => 'realisations','posts_per_page' => 6); $args['search_filter_id'] = 256; $query = new WP_Query($args); ?> <div class="results"> <?php if ( $query->have_posts() ) : while ( $query->have_posts() ) : $query->the_post(); ?> <?php the_title(); ?><br /> <?php the_field('annee'); ?><br /> <?php the_field ('adresse'); ?><br /> <?php the_content(); ?> <?php endwhile; endif; ?> </div>
Display results method: Custom
Result URL: https://intoinc.mebdev.ca/realisation
Load results using Ajax?: check
Make searches bookmarkable?: unchek
Only use Ajax on the results page?: uncheck
Ajax Container: .resultsThank you
Anonymous(Private) September 11, 2019 at 1:23 pm #220737I tried, no difference.
No matter which filter I choose the result is the same or it disappears.I changed the shortcode and it’s the same thing, only one result.
If I choose the Division filter and the Solution option (9) the result is No Result Found.Here’s my code:
echo do_shortcode(‘[searchandfilter id=”256″]’);
echo do_shortcode(‘[searchandfilter id=”256″ show=”results”]’);
Anonymous(Private) September 11, 2019 at 1:31 pm #220743I switch for 2019 theme and same result.
You can see it here : https://intoinc.mebdev.ca/realisation/
-
AuthorPosts