
內容簡介
Nr Infinite Scroll Posts 外掛可用於控制顯示文章或自訂文章類型的文章。
該外掛提供了一個 shortcode,利用捲動網頁滾動條的方式顯示文章。
簡碼:
[NR_INIFINITE_SCROLL]
您可以將此簡碼用於任何頁面,或者
您可以直接在 PHP 檔案中使用 do_shortcode(‘[NR_INIFINITE_SCROLL]’); 進行呼叫。
簡碼參數:
post_type=”Custom Post Type” 或預設文章
posts_per_page=數字型別的文章數量,預設一頁顯示 5 篇文章
author_label = ‘true’ 或 ‘false’,預設值為 true
comments_label = ‘true’ 或 ‘false’,預設值為 true
date_label = ‘true’ 或 ‘false’,預設值為 true
以下是包含所有參數的完整簡碼:
[NR_INIFINITE_SCROLL post_type=”post” posts_per_page=’10’ author_label=’true’ comments_label=’true’ date_label=’true’ ]
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
A lightweight plugin to add infinite scroll and load more functionality using a shortcode or widget. Display posts from any post type with flexible settings.
Usage
Shortcode Example:
[infscroll post_type=”post” scroll_type=”loadmore” view=”list”]
Parameters:
post_type – (string) The post type to display. Default: “post”.
Example: post_type="product" to show WooCommerce products.
posts_per_page – (int) Number of posts to load initially and per scroll. Default: 5.
Example: posts_per_page="10"
scroll_type – (string) The scroll behavior. Options:
"loadmore" – Adds a Load More button
"infinite" – Loads automatically as the user scrolls
Default: "loadmore"
view – (string) Display layout. Currently supports:
"list" – Posts appear in a vertical list
Default: "list"
Example:
Load custom post type with 10 items per scroll:
[infscroll post_type=”event” posts_per_page=”10″ scroll_type=”infinite”]
