Title: Ajax Load More for SearchWP
Author: Darren Cooney
Published: <strong>2016 年 11 月 23 日</strong>
Last modified: 2025 年 6 月 5 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

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

# Ajax Load More for SearchWP

 由 [Darren Cooney](https://profiles.wordpress.org/dcooney/) 開發

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

 * [詳細資料](https://tw.wordpress.org/plugins/ajax-load-more-for-searchwp/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/ajax-load-more-for-searchwp/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/ajax-load-more-for-searchwp/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/ajax-load-more-for-searchwp/#developers)

 [技術支援](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/)

## 外掛說明

**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/)**

## 安裝方式

#### 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.

## 常見問題集

### 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 );

## 使用者評論

![](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/) 2019 年 4 月 10 
日

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/) 2017 年 10 月 4 日

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

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Ajax Load More for SearchWP〉的開發相關工作。

參與者

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

〈Ajax Load More for SearchWP〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp/contributors)
為這個外掛做出的貢獻。

[將〈Ajax Load More for SearchWP〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/ajax-load-more-for-searchwp/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/ajax-load-more-for-searchwp/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/ajax-load-more-for-searchwp/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/ajax-load-more-for-searchwp/)。

## 變更記錄

#### 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.

## 中繼資料

 *  版本 **1.0.5**
 *  最後更新 **1 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.12**
 *  語言
 * [Dutch](https://nl.wordpress.org/plugins/ajax-load-more-for-searchwp/) 及 [English (US)](https://wordpress.org/plugins/ajax-load-more-for-searchwp/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/ajax-load-more-for-searchwp)
 * 標籤:
 * [ajax load more](https://tw.wordpress.org/plugins/tags/ajax-load-more/)[infinite scroll](https://tw.wordpress.org/plugins/tags/infinite-scroll/)
   [search](https://tw.wordpress.org/plugins/tags/search/)[search results](https://tw.wordpress.org/plugins/tags/search-results/)
   [searchwp](https://tw.wordpress.org/plugins/tags/searchwp/)
 *  [進階檢視](https://tw.wordpress.org/plugins/ajax-load-more-for-searchwp/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/ajax-load-more-for-searchwp/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://connekthq.com/donate/)