內容簡介
這個外掛提供一個小工具,允許在側邊欄中的特殊區塊中顯示所選文章的公告。支援顯示縮略圖、自訂欄位與自定樣式。樣式可以透過單獨的 CSS 檔案進行設定。
小工具選項:
類別 ID (所需類別的 ID)
公告數量(顯示公告的數量)
字元數量(每篇公告的字元數量)
使用自訂欄位(僅限使用自訂欄位的公告)
特殊樣式
顯示類別(是否顯示類別名稱)
顯示縮略圖
要在帶有公告的區塊中插入縮略圖,只需添加相應的文章欄位 ‘favpostimg’(小寫,不含引號),
並設置圖片的完整路徑(URL)。
如果您只想顯示您喜歡的文章,只需在相應的文章中添加任何具有任何值的自訂欄位,
(自訂欄位的值必須不為空),並在小工具選項中設置此欄位。
在這種情況下,類別不重要。
在側邊欄中添加任意數量的小工具,每個小工具僅顯示具有相應自訂欄位的所選文章。
如果未在小工具選項中設置任何內容,則預設設置為類別 1、
每個公告的數量為 3、每個公告的字元數量為 300。
使用 CSS 檔案 ‘/favposts/favposts.css’ 製作您自己的特殊公告區塊樣式。
可更改的 CSS 類別清單:
cat-design – 顯示類別的樣式
cat-nodesign – 未特別設置的顯示類別的樣式
fav-title – 文章標題的樣式
favblok-design – 顯示公告的樣式
favblok-nodesign – 未特別設置的顯示公告的樣式
favimg – 顯示公告中的縮略圖的樣式
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Plugin adds a widget that allows to display anounces of selected posts in a special blocks in the sidebar. Supports the display of thumbnails, custom fields, your own styles. Styles may be configured through a separate CSS file.
Widget options:
Category ID (the desired category ID)
Number of anounces (number of displaying anounces)
Number of chars (number of chars in one anounce)
With custom field (only for anounces with custom fields)
Special style
Show category (displaying or not the name of category)
Show thumbnail
To insert thumbnail in a block with the announcement,
just add the appropriate post field ‘favpostimg’ (lowercase, without quotes)
and set full path (URL) to image.
If you want display only favorites posts that you want,
then add in the appropriate post any custom field with any value
(value of custom field must be not empty) and set this field in widget options.
In this case categories do not matter.
Add to sidebar so many widgets as you like and displaying through each
widget only selected posts with appropriate custom fields.
If nothing set in widget options, then default settings is category 1,
number of anounces 3, number of chars in each anounce 300.
For make your own style of special anounces blocks use css file ‘/favposts/favposts.css’.
List of css classes that you can change:
cat-design – style displaying of category
cat-nodesign – displaying category without special style
fav-title – style titles of posts
favblok-design – style displaying of anounce
favblok-nodesign – style displaying without special style
favimg – style displaying thumbnails in anounces
