[WordPress] 外掛分享: WP Ajax Random Posts

首頁外掛目錄 › WP Ajax Random Posts
10+
安裝啟用
尚無評分
5630 天前
最後更新
問題解決
WordPress 2.7+ v1.0.0 上架:2010-10-10

內容簡介

這個外掛讓你可以在側邊欄上顯示隨機文章,同時提供 ajax 自動刷新功能。
如何使用這個外掛呢?有兩種方式:
1. 前往小工具頁面,在側邊欄上添加小工具。
2. 使用自訂呼叫函數<?php WP_Ajax_Random_Posts('number=8&cmtcount=1&excerpt=1&length=100&auto=0&time=60'); ?>,自行調整文章顯示位置。
這個函數接受六個參數:
number:要顯示多少篇文章。型別:整數,預設為 8。
cmtcount:要顯示文章的評論數量。型別:布林,預設為 0。 1:是,0:否。
excerpt:要顯示文章摘要。型別:布林,預設為 0。 1:是,0:否。
length:摘要的長度。型別:整數,預設為 100。
auto:是否自動刷新隨機文章列表。型別:布林,預設為 0。1:是,0:否。
time:自動刷新間隔(秒)。型別:整數,預設為 60。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Ajax Random Posts」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Show your random posts on sidebar and provide ajax refresh function.
How to use this plug-in? It’s easy and you have two ways:
1.Go to widgets page to add the widget to your sidebar.
2.use the function to custom the posts display position.
This function accepts six parameters:
number: how many posts display. Type: Integer, default 8
cmtcount: display comments count of the post. Type: Boolean, default 0. 1: yes, 0: no
excerpt: display excerpt of no. Type: Boolean, default 0. 1: yes, 0: no
length: the length of the excerpt. Type: Integer, default 100
auto: auto refresh random psots list or not. Type: Boolean, default 0. 1: yes, 0: no
time: the auto refresh interval(seconds). Type: Integer, default 60
显示一组支持ajax自动刷新的随机文章列表。
如何使用插件呢?很简单,有两种方法:
1.到小工具页面去添加小工具。
2.使用自定义调用函数

延伸相關外掛

文章
Filter
Mastodon