內容簡介
隨機特色文章外掛可以讓您顯示某個指定類別的隨機文章。理想情況下,這可以引導首次造訪您網站首頁的讀者閱讀一些最佳文章。這個特色文章將會顯示標題「特色文章」(可自訂),連同文章標題、摘錄和連結以便閱讀完整文章。
附加說明
show_featured_post($PreFeature = ”, $PostFeature = ”, $AlwaysShow = false, $categoryID = 0, $NumberOfPosts = 0) 函數有五個可選參數。前兩個用於顯示特色文章前後的 HTML。第三個參數是一個布林值(true/false),當設為 true 時,會覆蓋顯示特色文章的選項並且總是顯示特色文章。第四個選項允許您指定要顯示的單一類別,覆蓋設置頁面上的選擇。第五個選項允許您同時顯示多個文章,覆蓋設置頁面上的選擇。
所有輸出內容都包含在一個名為「featuredpost」的 DIV 類中,並且可以通過樣式表進行調整。
外掛標籤
開發者團隊
原文外掛簡介
The Random Featured Post plugin allows you to display a random post from a designated category. Ideally this should
draw readers landing on your homepage to some of your best posts. The featured post will display the title
“Featured Post” (customizable) along with the post’s title, an excerpt and a link to continue to the full post.
Additional Notes
The show_featured_post($PreFeature = ”, $PostFeature = ”, $AlwaysShow = false, $categoryID = 0, $NumberOfPosts = 0) function has five optional arguments.
The first two are for any HTML you would like to display before and after the featured post. The third argument is a
boolean (true/false) argument which will override the \’Show Featured Post\’ option and always display the featured post when true. The fourth option allows you to
specify a single category to display from, overriding the selections in settings page. The fifth option allows you to show more than one post at a time, overriding
the settings page option.
All output is contained in a DIV class named “featuredpost” and can be adjusted via your stylesheet.
