Title: Ajax Load More for SearchWP
Author: Darren Cooney
Published: <strong>November 23, 2016</strong>
Last modified: June 5, 2025

---

Search plugins

![](https://ps.w.org/ajax-load-more-for-searchwp/assets/banner-772x250.jpg?rev=2848163)

![](https://ps.w.org/ajax-load-more-for-searchwp/assets/icon-128x128.png?rev=2848163)

# Ajax Load More for SearchWP

 By [Darren Cooney](https://profiles.wordpress.org/dcooney/)

[Download](https://downloads.wordpress.org/plugin/ajax-load-more-for-searchwp.1.0.5.zip)

 * [Details](https://wordpress.org/plugins/ajax-load-more-for-searchwp/#description)
 * [Reviews](https://wordpress.org/plugins/ajax-load-more-for-searchwp/#reviews)
 *  [Installation](https://wordpress.org/plugins/ajax-load-more-for-searchwp/#installation)
 * [Development](https://wordpress.org/plugins/ajax-load-more-for-searchwp/#developers)

 [Support](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/)

## Description

**Ajax Load More for SearchWP** is a tiny extension that provides the functionality
for returning [SearchWP](https://searchwp.com) query results to [Ajax Load More](https://wordpress.org/plugins/ajax-load-more/)
for infinite scrolling.

The extension works by providing a connection point between Ajax Load More and SearchWP
and is available for users running at least Ajax Load More 2.13.0 and SearchWP 2.6.1.

#### Implementation Steps

 1. Activate plugin.
 2. Create Ajax Load More shortcode with a unique ID parameter.
 3. Add custom `alm_query_args` filter to your theme functions.php – [Learn More](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/#how-it-works).

**[View Documentation](https://connekthq.com/plugins/ajax-load-more/extensions/searchwp/)**

## Installation

#### Uploading in WordPress Dashboard

 1. Navigate to the ‘Add New’ in the plugins dashboard
 2. Navigate to the ‘Upload’ area
 3. Select `ajax-load-more-for-searchwp.zip` from your computer
 4. Click ‘Install Now’
 5. Activate the plugin in the Plugin dashboard

#### Using FTP

 1. Download `ajax-load-more-searchwp.zip`.
 2. Extract the `ajax-load-more-for-searchwp` directory to your computer.
 3. Upload the `ajax-load-more-for-searchwp` directory to the `/wp-content/plugins/`
    directory.
 4. Ensure Ajax Load More is installed prior to activating the plugin.
 5. Activate the plugin in the WP plugin dashboard.

## FAQ

### What version of SearchWP is this plugin compatible with?

Requires SearchWP > 2.6.1

### How does this work?

This extensions works by using the [alm_query_args](https://connekthq.com/plugins/ajax-load-more/docs/filter-hooks/#alm_query_args)
filter to pass values to the SWP_Query and then back to Ajax Load More.
 [View Example](https://gist.github.com/dcooney/54bed833e51d862e204337cc7a0e18a1)

### How do I pass a search term to SearchWP

You can pass search term to your Ajax Load More shortcode. [ajax_load_more search
=”My Search Query” id=”searchwp”]

### Can I choose my SearchWP search engine?

Yes, when you add your `alm_query_args` filter, you can specify a search engine.

$engine = ‘my_custom_engine’;

### How do I highlight the search term in the search results?

In your Ajax Load More Repeater Template you can do the following, which uses the
[SearchWP Highlighter](https://searchwp.com/documentation/classes/searchwp-highlighter/).

global $post; $excerpt = get_the_excerpt( $post ); echo alm_searchwp_highlight( 
$excerpt, $args );

## Reviews

![](https://secure.gravatar.com/avatar/db38492748d4aa2ce86998bcd369c2ecf0dc4205716a3091fee8024874f97fa8?
s=60&d=retro&r=g)

### 󠀁[Good Plugin..](https://wordpress.org/support/topic/good-plugin-3500/)󠁿

 [rajeevglocify](https://profiles.wordpress.org/rajeevglocify/) April 10, 2019

Good Plugin..

![](https://secure.gravatar.com/avatar/ee111aee2007ae08bb64d74f865fefb83edc6d677b4321b93cc2d71ffee31cfd?
s=60&d=retro&r=g)

### 󠀁[Perfect](https://wordpress.org/support/topic/perfect-4416/)󠁿

 [apmeyer](https://profiles.wordpress.org/apmeyer/) October 4, 2017

Does exactly what’s supposed to do. Thanks for adding this extension!

 [ Read all 2 reviews ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/)

## Contributors & Developers

“Ajax Load More for SearchWP” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)
 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)

“Ajax Load More for SearchWP” has been translated into 1 locale. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp/contributors)
for their contributions.

[Translate “Ajax Load More for SearchWP” into your language.](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ajax-load-more-for-searchwp/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ajax-load-more-for-searchwp/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ajax-load-more-for-searchwp/)
by [RSS](https://plugins.trac.wordpress.org/log/ajax-load-more-for-searchwp/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.5 – June 5, 2025

 * NEW: Adding Ajax Load More as a required plugin.
 * UPDATE: Code cleanup, readme and WP tested version.

#### 1.0.4 – November 16, 2024

 * FIX: Replace SWP_Query with SearchWP\Query

#### 1.0.3 – November 11, 2024

 * UPDATE: Readme, contributors, WordPress tested version.

#### 1.0.2 – April 17, 2021

 * UPDATE – Added support for highlighting the search term in SearchWP results with
   Ajax Load More. See plugin FAQs.

#### 1.0.1 – November 28, 2016

 * UPDATE – Updating SWP_Query to only return post IDs.

#### 1.0 – November 25, 2016

 * Initial Release.

## Meta

 *  Version **1.0.5**
 *  Last updated **1 year ago**
 *  Active installations **200+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/ajax-load-more-for-searchwp/) and [English (US)](https://wordpress.org/plugins/ajax-load-more-for-searchwp/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp)
 * Tags
 * [ajax load more](https://wordpress.org/plugins/tags/ajax-load-more/)[infinite scroll](https://wordpress.org/plugins/tags/infinite-scroll/)
   [search](https://wordpress.org/plugins/tags/search/)[search results](https://wordpress.org/plugins/tags/search-results/)
   [searchwp](https://wordpress.org/plugins/tags/searchwp/)
 *  [Advanced View](https://wordpress.org/plugins/ajax-load-more-for-searchwp/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  2 5-star reviews     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/)

## Contributors

 *   [ Darren Cooney ](https://profiles.wordpress.org/dcooney/)
 *   [ connekthq ](https://profiles.wordpress.org/connekthq/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://connekthq.com/donate/)