Search results ignoring search term. Loading all posts.
-
Hi!
I have latest plugin and purchased the add-on for custom templates (repeaters).
The plugin works perfect exept the search results. Any search string returns the right result, but after I click “Load more” the plugin load all posts even without the right search term, just all posts i have published.
Here is my code in template:
<?php $term = $_GET['term']; ?> <?php echo do_shortcode('[ajax_load_more repeater="template_3" post_type="post" search="'. $term .'" offset="4" posts_per_page="4" pause="true" scroll="false" button_label="Load more"]'); ?>
Repeater is pretty simple, just for testing:
<a href="<?php the_permalink(); ?>" class="search-item-title"><?php the_title(); ?></a>
Can you help with this issue?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Search results ignoring search term. Loading all posts.’ is closed to new replies.