內容簡介
Testimonials 外掛是一款用於管理 WordPress 網站上的推薦評價的外掛。它具備完整的功能和短代碼能力,可以在文章、小工具、頁面和網站的其他區域中顯示。此外,此外掛還具有多個功能,可允許自定義顯示方式。
短代碼用法
若要在文章、頁面或小工具中添加推薦評價,請使用以下代碼:
[plumwd-testimonials]
若要在 WordPress 的佈景主題中添加外掛,請在您的範本中使用以下代碼:echo do_shortcode('[plumwd-testimonials]');
此外掛還支持多個短代碼屬性。下面是這些屬性及其用途的列表:
size -> 這允許您使用外掛限制返回的字符數量。它將顯示您指定的前 n 個字符。用法:
[plumwd-testimonials size=”100″]
ending -> 這允許您為您的推薦評價指定結尾。當限制返回的字符數量時,這非常方便。用法:
[plumwd-testimonials ending=”…”]
num -> 這允許您限制返回的推薦評價數量,將其留空以檢索所有推薦評價。用法:
[plumwd-testimonials num=”3″]
type -> 允許您指定列表顯示方式。可用選項有:list、para、span、div。推薦評價將默認顯示為無序列表。用法:
[plumwd-testimonials type=”list”]
class -> 這允許您將一個類應用於項目容器,以便您可以應用自定義樣式。用法:
[plumwd-testimonials class=”test”]
id -> 這允許您將一個 ID 應用於項目容器。用法:
[plumwd-testimonials id=”testimonials”]
childclass -> 這僅適用於列表項目。設置 childclass 將使 li 元素上有一個類。用法:
[plumwd-testimonials childclass=”slides”]
外掛標籤
開發者團隊
原文外掛簡介
Testimonials is a plugin for managing testimonials placed on your WordPress site. It has full features and shortcode ability for display in posts, widgets, pages, and other areas of your site. The plugin also has several features that allow for customization of the display.
Shortcode Usage
To add testimonials to your posts, pages, or widgets use the following code:
[plumwd-testimonials]
To add the testimonials plugin to your WordPress theme use the following code inside your template: echo do_shortcode('[plumwd-testimonials]');
The plugin also supports several attributes for the shortcode, below is a listing of the attributes and what their purpose is:
size -> this allows you to limit the number of characters returned using the plugin. It will display the first nth number that you specify. Usage:
[plumwd-testimonials size=”100″]
ending -> this allows you to specify an ending for your testimonial. This comes in handy when limiting the number of characters returned. Usage:
[plumwd-testimonials ending=”…”]
num -> this allows you to limit the number of testimonials returned, leave blank to retrieve them all. Usage:
[plumwd-testimonials num=”3″]
type -> allows you to specify how you want the list to be displayed. The available options are: list, para, span, div. By default testimonials will display as an unordered list. Usage:
[plumwd-testimonials type=”list”]
class -> this allows you to apply a class to the item container so that you can apply custom styles. Usage:
[plumwd-testimonials class=”test”]
id -> this allows you to apply an id to the item container. Usage:
[plumwd-testimonials id=”testimonials”]
childclass -> this applies only to the list item. Setting childclass will place a class on the li element. Usage:
[plumwd-testimonials childclass=”slides”]
