內容簡介
WP-SlidesJS 是一款 WordPress 外掛,它新增了 wp-slidesjs 快速功能,以便從一個分類的文章中創建 Slides JS 幻燈片。
使用方法
將 [wp-slidesjs] 短碼放置在文章或頁面的任何位置。您可以使用以下方法來指定要顯示的文章:
category_id:要顯示文章的分類 ID
或
category_slug:要顯示文章的分類別名
或
page_id:要顯示的頁面 ID
或
post_id:要顯示的文章 ID
和(可選)
limit:限制要顯示的文章數量
範例 1:
[wp-slidesjs category_id=12 limit=6]
這將從分類 #12 的最後 6 篇文章中創建輪播圖。這樣會有 6 張輪播圖片。
範例 2:
[wp-slidesjs page_id=3,211,1389,1121 ]
這將從頁面 #3、#211、#1389 和 #1121 創建輪播圖。這樣會有 4 張輪播圖片。
每頁的輪播圖片數量是無限制的。
外掛標籤
開發者團隊
原文外掛簡介
WP-SlidesJS adds wp-slidesjs shortcut function to WordPress in order to create Slides JS slideshow from posts of a category.
Usage
Place [wp-slidesjs] shortcode into anywhere in the post or a page. You can use the following to specify the posts to show:
category_id: ID of the category to show posts from
or
category_slug: slug of the category to show posts from
or
page_id: id of the page to show
or
post_id: id of the post to show
and (optional)
limit: limit the number of the posts to show
Example 1:
[wp-slidesjs category_id=12 limit=6]
This will create the slider from the last 6 posts of category #12. You’ll going to have 6 slides this way.
Example 2:
[wp-slidesjs page_id=3,211,1389,1121 ]
This will create the slider from pages #3, #211, #1389 and #1121. You’ll going to have 4 slides this way.
The number of sliders per page is unlimited.
