Beschrijving
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.
Implementatie stappen
- Plugin activeren.
- Maak een Ajax Load More shortcode aan, met een unieke ID parameter.
- Voeg een aangepaste
alm_query_args
filter toe aan je thema functions.php – Meer informatie.
Installatie
Uploading in WordPress Dashboard
- Navigate to the ‘Add New’ in the plugins dashboard
- Navigate to the ‘Upload’ area
- Select
ajax-load-more-for-searchwp.zip
from your computer - Klik op ‘Nu installeren’
- Activate the plugin in the Plugin dashboard
FTP gebruiken
- Download
ajax-load-more-searchwp.zip
. - Extract the
ajax-load-more-for-searchwp
directory to your computer. - Upload the
ajax-load-more-for-searchwp
directory to the/wp-content/plugins/
directory. - Ensure Ajax Load More is installed prior to activating the plugin.
- Activate the plugin in the WP plugin dashboard.
FAQ
-
Met welke versie van SearchWP is deze plugin compatibel?
-
Vereist SearchWP > 2.6.1
-
Hoe werkt dit?
-
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 -
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.
global $post;
$excerpt = get_the_excerpt( $post );
echo alm_searchwp_highlight( $excerpt, $args );
Beoordelingen
Bijdragers & ontwikkelaars
“Ajax Load More for SearchWP” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
Bijdragers“Ajax Load More for SearchWP” is vertaald in 1 taal. Dank voor de vertalers voor hun bijdragen.
Vertaal “Ajax Load More for SearchWP” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
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
- Initiële release.