前言介紹
- 這款 WordPress 外掛「LCP Ajax Pagination」是 2021-04-21 上架。
- 目前有 200 個安裝啟用數。
- 上一次更新是 2023-03-16,距離現在已有 779 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.7 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
- 有 2 人給過評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
zymeth25 |
外掛標籤
ajax | ajax pagination | list category posts |
內容簡介
LCP Ajax Pagination 是一個 List Category Posts 的外掛插件。
眾多使用者已要求 AJAX 分頁功能,現在此擴展套件已能實現。
目前支援兩種模式:
Ajax 分頁
載入更多文章
重要提示:需要 List Category Posts 版本 0.84.1 或更高版本。
Ajax 分頁
使用方式:[catlist ajax_pagination=yes]
結果和使用 [catlist pagination=yes] 相同,只是點擊分頁連結時不會觸發頁面重新加載。
新文章會異步提取,列表會在不重新加載頁面的情況下更新。
不會修改 LCP 分頁 的其他功能,
您仍然可以像以前一樣使用分頁 CSS 或其他自定義。
載入更多文章
使用方式:[catlist ajax_loadmore=yes]
這會通過用「載入更多」鏈接替換 LCP 分頁鏈接來轉換 LCP 分頁。請注意,此
首個版本不允許指定要提取多少文章,而是使用 numberposts 短碼參數
同 分頁LCP。
這在未來的版本中會改變。
您可以使用 LCP 的 pagination_next 參數自定義鏈接文字:
[catlist ajax_loadmore=yes pagination_next=”顯示更多文章”]
一般注意事項
重要提示:如果頁面中有多個短碼,那些使用 AJAX 的必須設定 instance 參數,
詳見文檔。
例如:[catlist ajax_loadmore=yes instance=1]
您不必使用 LCP 的 pagination 參數,使用 ajax_loadmore 或 ajax_pagination 即可。
請確保您的短碼中僅包含一個選項: ajax_loadmore 或 ajax_pagination,否則插件將無法正常運作。
CSS 自定義
此插件使用以下 CSS 類:
AJAX 分頁的
- 具有原始的 lcp_paginator 類,此插件還添加了 lcpax-pagination。
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「LCP Ajax Pagination」來進行安裝。
SearchWP Live Ajax Search 》此 WordPress 外掛不需要SearchWP,但如果有的話就會使用它。在 searchwp.com 可以找到完整文檔。, 歡迎在 GitHub 上貢獻您的力量!https://github.com/jchri...。
AJAX Thumbnail Rebuild 》AJAX Thumbnail Rebuild 可讓您重新建立網站上的所有縮圖。儘管已經有一些插件可供使用,但它們有一個共同點:所有縮圖都會在單一步驟中重新建立。如果您的網...。
WordPress File Upload 》這個外掛讓你或其他使用者可以從任何頁面、文章或側邊欄輕鬆、安全地上傳檔案到你的網站。, 只需要在任何 WordPress 頁面/文章中加入簡碼 [wordpress_file_up...。
WPC AJAX Add to Cart for WooCommerce 》WPC AJAX Add to Cart for WooCommerce 是一款高效的外掛,能幫助線上商店削減網站載入時間、改善用戶體驗並增加銷售額。此外掛允許用戶加入商品至購物車而不...。
Entry Views 》Entry Views 會記錄每篇文章/頁面(或任何文章類型)的瀏覽次數。 它附帶一個小工具,可顯示最受歡迎的文章,一個短代碼可顯示文章的瀏覽次數,以及方便的佈...。
Ajax Cart AutoUpdate for WooCommerce 》這是一個輕巧的外掛程式,在產品數量更改時自動更新購物車頁面和迷你購物車。同時移除了預設的「更新購物車」按鈕,並可以選擇關閉購物車頁面提示訊息。, 特...。
WooCommerce Ajax Cart Plugin 》WooCommerce AJAX Cart 是一款 WordPress 插件,可以更改 WooCommerte 購物車頁面的默認行為,讓買家在更改產品數量時即時查看總價格計算,無需手動點擊 "更...。
pageMash > Page Management 》使用此簡單的 AJAX 拖放管理介面,自訂頁面的排序,並管理父頁面結構,還有可選擇隱藏輸出頁面的選項。是一個快速重排頁面選單的好工具。, 查看範例頁面:htt...。
Load More Anything 》Commerce Products, Custom Div or Anything, , 這款插件能幫助您在 WordPress 網站上載入更多內容。您可以在博客文章、評論、頁面、類別、最新文章、側邊欄...。
Enable CORS 》外掛會收集網站 URL 與啟用的外掛列表,以提供支援。但不會分享給第三方。本外掛可幫助解決CORS問題,讓您輕鬆存取跨域資源。只需幾個簡單點擊,就能在網站上...。
Relevanssi Live Ajax Search 》Relevanssi Live Ajax Search 可以讓你的搜尋表單使用 ajax 即時搜尋。它不會淹沒你的設定,通常不需要做任何修改即可正常運作。如果你想自訂它,你可以完全...。
Infinite-Scroll 》無限捲動(Infinite scroll)也被稱為自動分頁、取消分頁、無限頁面等等。基本上,它是預先從下一個頁面取得內容,並直接將它添加到用戶當前的頁面。, 當用戶...。
Dave's WordPress Live Search 》Dave's WordPress Live Search 可在您的 WordPress 站點中加入「即時搜尋」功能。當訪客在 WordPress 站點的搜尋框中輸入字詞時,該外掛會持續查詢 WordPress...。
Filter & Grids 》使用 AJAX 篩選自定義分類 / 分類標籤來篩選文章或自定義文章類型,無需重新載入頁面,並支持不同的分頁類型。這款外掛允許解決顯示網站頁面上的文章的各種任...。
Ajaxify Comments – Ajax and Lazy Loading Comments 》尋找新的外掛程式維護者 👀, 請注意,此外掛程式已不再維護或支援,我們正在尋找新的外掛程式維護者(請參閱我們的公告 這裡)。 , 介紹, 預設情況下,當使用...。
「載入更多」鏈接周圍的包裝器為:
與 LCP 一樣,具有 lcp_nextlink 類。
等待「載入更多」完成時顯示的 SVG 旋轉器具有 lcpax-spinner 類。
開發
LCP Ajax 是開源軟體。您可以在 Github 找到
插件的開發版本。
我們歡迎所有建議和貢獻。複製代碼,閱讀存儲庫的
readme,開始幫助開發吧!
支持此插件
如果您發現此插件有用並希望支持其進一步發展,請考慮
在 GitHub 上贊助或 在 PayPal 上捐贈 🙂
使用者支援
如有疑問,請使用支援論壇。
原文外掛簡介
LCP Ajax Pagination is an add-on plugin for List Category Posts.
Many users have requested the AJAX pagination feature and it is now possible with this extension.
Two modes are currently supported:
Ajax pagination
Load more posts
IMPORTANT: Requires List Category Posts version 0.84.1 or greater.
Ajax pagination
Usage: [catlist ajax_pagination=yes]
The result is as if you used [catlist pagination=yes] but clicking pagination links does not trigger page reloads.
Instead, new posts are fetched asynchronously and the list is updated without a reload.
No other features of LCP pagination are modified,
you can apply your pagination CSS, or other customisations, same as you have before.
Load more
Usage: [catlist ajax_loadmore=yes]
This transforms vanilla LCP pagination by replacing pagination links with a “Load more” link. Note that this
first release does not allow specifying how many posts to fetch and uses the numberposts shortcode parameter
same as vanilla pagination.
This will change in a future release.
You can customise the link’s text using LCP’s pagination_next parameter:
[catlist ajax_loadmore=yes pagination_next=”Show more posts”]
General notes
IMPORTANT: If you have multiple shortcodes on a page, those using AJAX must have the instance parameter set
as per the documentation.
[catlist ajax_loadmore=yes instance=1]
You do not have to use LCP’s pagination parameter, using ajax_loadmore or ajax_pagination is enough.
Make sure your shortcode contains only one option: ajax_loadmore or ajax_pagination, otherwise the plugin will not work.
CSS customisations
The plugin uses the following CSS classes:
AJAX pagination
- has the original lcp_paginator class, this plugin also adds lcpax-pagination.
Wrapper around the load more link is:
as delivered by LCP, so it has the lcp_nextlink class.
The SVG spinner displayed while waiting for ‘load more’ to finish has the lcpax-spinner class.
Development
LCP Ajax is open source software. You can find the
development version of the plugin on Github.
All suggestions and contributions are welcome 🙂 Fork it, read the respository’s
readme and start helping with the development!
Support the plugin
If you have found this plugin useful and would like to support its further development please consider
sponsoring it on GitHub or donating on PayPal 🙂
User Support
Please use the support forum for questions about using the plugin. Use Github issues for discussing code changes and bugs.
各版本下載點
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1.0 | 0.1.1 | 0.1.2 | 0.1.3 | 0.1.4 | 0.1.5 | trunk |
延伸相關外掛(你可能也想知道)