內容簡介
Sticky Tax 可以讓文章在特定的分類或標籤中成為「置頂」。這對於重要的內容或重要的故事非常理想,Sticky Tax 讓部落格保持按時間順序的文章歸檔方式,同時將最重要的內容保持在列表頂端。
這個插件有什麼用途?
讓我們假設 Chris 是一個長期寫部落格的人,他的網站有很多流量。他花了很多心思分類所有內容,但是有些文章他希望確保當人們訪問特定的分類或標籤時,這些文章是第一個被看到的。
使用 WordPress 的預設行為,這些重要的內容最終會因為它們不是分類中最新的文章而被遺失在分頁後面。
有了 Sticky Tax,Chris 可以在分類中突顯最重要的文章,不論它們是上週還是去年寫的!
使用方法
安裝並啟用 Sticky Tax 後,文章編輯頁面上會出現一個新的「Promote Post」元框,其中包含您站點上註冊的任何公共分類。
在前端網頁中
歸檔頁面將會顯示置頂文章。每個置頂文章甚至都會被加上 .sticky-tax 的類,讓您可以為您的重要內容設計自定義樣式!
外掛標籤
開發者團隊
原文外掛簡介
Sticky Tax enables posts to be made “sticky” within a specific category or tag. Ideal for cornerstone content or important stories, Sticky Tax lets blogs maintain chronological post archives, while keeping the most important content at the top of the list.
Why might I want this?
Let’s imagine Chris, a long-time blogger with lots of traffic coming to his site. He’s worked hard to categorize all of his content, but there are a few posts that he wants to make sure are the first thing people see when they hit a category landing page.
Using WordPress’ default behavior, these important pieces of content will eventually get lost behind pagination, just because they’re not the newest posts in the category.
With Sticky Tax, Chris can highlight the most important posts in a category, whether they were written last week or last year!
Usage
After installing and activating Sticky Tax, a new “Promote Post” meta box will appear on the post edit screen, with a list of terms for any public taxonomies registered on your site.
On the front-end
archive. Each sticky post even gets a .sticky-tax class added to it, enabling you to apply custom styling for your sticky content!
