[WordPress] 外掛分享: The Pagination and Load More

WordPress 外掛 The Pagination and Load More 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「The Pagination and Load More」是 2025-08-26 上架。
  • 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
  • 上一次更新是 2026-01-30,距離現在已有 27 天。
  • 尚未有人給過這款外掛評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

sevar |

外掛標籤

load more | pagination | ajax load more | ajax pagination | load more button |

內容簡介

總結:Cubeab Pagination and Load More 是一個輕量的解決方案,可為任何文章類型添加 AJAX 分頁和更多功能,讓它們能夠同步運作。

1. 安裝 Cubeab Pagination and Load More 外掛的方法:
- WordPress 管理員方法:
- 前往 WordPress Plugins 插件區域,使用搜索功能尋找 Cubeab Pagination and Load More
- 點擊安裝並啟用外掛
- FTP 方法:
- 將完整的備份文件夾上傳至 /wp-content/plugins/ 目錄
- 透過 WordPress 中的「Plugins」選單啟用外掛

2. 如何在主題/模板中使用 Cubeab Pagination and Load More 外掛?
- 在 /themes/ 文件夾中創建一個新文件夾「template-parts」
- 在其中創建一個文件:「content-{post_type}.php」
- 在文件中放置您的循環項目,例如一個產品卡
- 在同一類型的文章頁面或分類模板中,放置 [cubeab_pagination_more] 這個短代碼,以顯示分頁內容
- 在外掛設置中選擇文章類型並根據需求配置其他設置

3. 注意事項:
- 使用 URL 反映 Cubeab Pagination and Load More 的工作方式:僅使用分頁時,URL 顯示頁碼,如 /page/4/;當與 Load More 按鈕一起使用時,URL 會變為 /page/4/more/3/,表示在第 3 頁單擊了 Load More 按鈕,並加載了一頁。
- 修改 /more/ slug 後,請保存永久鏈接:在左側菜單中,前往「設置」>「永久鏈接」
- 在設置中有許多免費選項,可以根據需求禁用 URL 中的頁面參數,只顯示分頁或只顯示 Load More 按鈕,或根據設備屏幕寬度顯示它們。

Demo 網站:https://silverpheasant.ru/

版本變更:1.0.0

問題與答案:
1. Cubeab Pagination and Load More 是用來做什麼的?
- 答:它是一個輕量的解決方案,用於為任何文章類型添加 AJAX 分頁和更多功能,讓它們能夠同步運作。

2. 如何在 WordPress 中安裝並啟用 Cubeab Pagination and Load More 外掛?
- 答:您可以通過 WordPress 管理員方法或使用 FTP 方法來安裝此外掛。

3. 如何在主題/模板中使用 Cubeab Pagination and Load More 外掛?
- 答:您需要在主題的 /themes/ 文件夾中創建「template-parts」文件夾,再創建一個名為「content-{post_type}.php」的文件。接著將循環項目放置在此文件中,並在需要分頁內容的頁面或分類模板中放置 [cubeab_pagination_more] 短代碼,最後在外掛設置中選擇文章類型並配置其他設置。

原文外掛簡介

A lightweight solution The Pagination and Load More adds AJAX pagination and Load More functionality that work in sync for any post type.
How to install/activate it?
WordPress Admin Method:
Go to you administration area in WordPress Plugins > Add
Search for The Pagination and Load More
Click on Install and activate the plugin
FTP Method:
Upload the complete backup folder to the /wp-content/plugins/ directory
Activate the plugin through the ‘Plugins’ menu in WordPress
The AJAX pagination menu will appear in the left sidebar in the Settings
Usage
How to use in theme/templates?
In your /themes/ folder create another folder, if you haven’t already, “template-parts”. Create and place into this folder a file: “content-{post_type}.php”. If you want to paginate, for example, woocommerce products, then after “-” type the name of the Post Type and it would look like so: “content-product.php”. If it would be just posts then it would look like so: “content-post.php” and so on. Inside the file you need to place your loop item, for example a product card. Then on the page of a post type or/and category/subcategory or a tag template or product brand or search results of the same post type, where you want to have your paginated content, place the shortcode [cubeab_code]. Then, in the plugin’s settings you also want to select the post type and configure the rest of the settings according to your needs.
The Pagination and Load More work reflects in the URL: if only the pagination is engaged then it shows only page number, like /page/4/ but if they work together with Load More button then the URL would be like /page/4/more/3/, it means that the button Load More was clicked on the page 3 and loaded additionally one more page. The /more/ text you can easily change. IMPORTANT – after changing /more/ slug, save permalinks: In the left-hand menu, go to Settings > Permalinks. The /more/ path segments are hidden from search index. The plugin has many free options in the settings. If you don’t need the pages’ path segments in URL you can easily disable it in the settings. You can also show only pagination or only LoadMore button or show each one based on device’s screen width.
Template names you can use
For a post type on the home front page: files that end on *-page.php, *-template.php, *-home.php, *-post-type.php, *-posts.php.
For categories: category-{$category->slug}.php, category-{$category->term_id}.php, category.php, archive.php.
For woocommerce categories: taxonomy-product_cat-{$product_cat}.php, taxonomy-product_cat.php, archive-product.php, category.php, archive.php.
for post tags: tag-{$post_tag}.php, tag.php, archive.php, index.php.
For woocommerce tags: product-tag-{$tag->slug}.php, product-tag-{$tag->term_id}.php, taxonomy-product_tag, product-tag.php, archive-product.php, archive.php.
For product brands in get_query_var('product_brand'): taxonomy-product_brand-{$brand_slug}.php, taxonomy-product_brand-{$term->term_id}.php, taxonomy-product_brand.php, archive-product.php, archive.php, index.php
For search results, for example: search.php
For not found 404 page: files that end on *-page404.php, *-404.php or such full names as: 404.php, notfound.php. And also you need to make a wordpress page for that and set the slug of it in the settings of the plugin.
Demo site: https://evgenysudakov.ru/
Changelog:
1.0.0 – Initial upload
1.1.5 – Noindex /more/ and dynamic container fix
1.1.6 – Not found 404 fix and other minor fixes
1.1.7 – Small fix
1.1.8 – Small fix published posts only
1.2.0 – Many fixes, added support for product brands
1.2.1 – Small fix
1.2.2 – Category template fix
1.2.3 – Var $categ_base is not exist fix
1.2.4 – Template choice fix
1.2.5 – Template choice fix ultimate
1.2.6 – Shortcode inside page builder fix
1.2.7 – Fixed possible error on single product page
1.2.8 – Small fix
1.2.10 – Search results support
1.2.11 – Changed posts loading style and added gif option for preloader
1.2.12 – An error message fixed
1.2.13 – Fixed odd pagination behaviour
1.2.14 – Replaced section by div
1.2.15 – fixed 404 page functioning

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「The Pagination and Load More」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | 1.0.1 | 1.0.2 | 1.0.3 | 1.1.0 | 1.1.1 | 1.1.2 | 1.1.3 | 1.1.4 | 1.1.5 | 1.1.6 | 1.1.7 | 1.1.8 | 1.2.0 | 1.2.1 | 1.2.2 | 1.2.3 | 1.2.4 | 1.2.5 | 1.2.6 | 1.2.7 | 1.2.8 | 1.2.9 | trunk | 1.2.10 | 1.2.11 | 1.2.12 | 1.2.13 | 1.2.14 | 1.2.15 |

延伸相關外掛(你可能也想知道)

  • Dynamically Display Posts 》, 這個外掛程式可以讓你在網站的任何頁面上顯示文章列表。, 你可以顯示 WordPress 預設文章類型或自定義文章類型,只需要在你想要顯示文章項目的頁面...。

文章
Filter
Mastodon