An Ajax Load More extension that adds compatibility with SearchWP plugin.
Ajax Load More for SearchWP is a tiny extension that provides the functionality for returning SearchWP query results to 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.
alm_query_args
filter to your theme functions.php – Learn More.ajax-load-more-for-searchwp.zip
from your computerajax-load-more-searchwp.zip
.ajax-load-more-for-searchwp
directory to your computer.ajax-load-more-for-searchwp
directory to the /wp-content/plugins/
directory.Requires SearchWP > 2.6.1
This extensions works by using the alm_query_args filter to pass values to the SWP_Query and then back to Ajax Load More.
View Example
You can pass search term to your Ajax Load More shortcode. [ajax_load_more search=”My Search Query” id=”searchwp”]
Yes, when you add your alm_query_args
filter, you can specify a search engine.
$engine = ‘my_custom_engine’;
In your Ajax Load More Repeater Template you can do the following, which uses the SearchWP Highlighter.
global $post;
$excerpt = get_the_excerpt( $post );
echo alm_searchwp_highlight( $excerpt, $args );