[WordPress] 外掛分享: WP Bannerized Categories

首頁外掛目錄 › WP Bannerized Categories
WordPress 外掛 WP Bannerized Categories 的封面圖片
10+
安裝啟用
尚無評分
2911 天前
最後更新
問題解決
WordPress 4.0+ PHP 5.6+ v0.1 上架:2018-03-29

內容簡介

在您的分類和文章頁面頂部放置自訂橫幅和鏈接。透過分類編輯頁面輕鬆更新圖像。

功能:

不需要配置,只需安裝即可開始使用
支援每個分類的圖像
自訂文章類別位置,由模板標記支援,在自訂類別模板和文章模板中包含圖像的短代碼。
為每個類別/橫幅圖像支援鏈接

入門指南:

從側邊欄中點擊「文章」-〉「分類」
從列表中選擇一個分類
將您想要使用的橫幅圖像的 URL 或上傳圖像貼到「橫幅圖像 URL」欄位中
這就是它,您的橫幅現在應該顯示在您的分類頁面上。
從編輯分類頁面中刪除 URL 以刪除圖像。

您可以透過取消勾選「在分類頁面主內容上方自動插入橫幅」來隱藏自動圖像放置。在文章上顯示必須勾選第二個核取方塊。

然後,您可以將模板標記 wp_show_category_banner() 放在自訂類別模板中,以自訂圖像在標記中的位置。注意 - 這個標記必須放在類別模板中 - 而不是文章模板中。

對於文章模板,在所需位置複製並粘貼短代碼 do_shortcode( '[category_post_banner]' )。

外掛的官方文檔和支援頁面

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WP Bannerized Categories」→ 直接安裝(推薦)

原文外掛簡介

Place a custom banner and link at the top of your category and post pages. Easily update the image through your category edit page.
Features:

No configuration needed, just install and start using
Supports an image for each category
Custom post category positions with a template tag, shortcode for including the image in a custom area in your custom category template and post template.
Support a link for each category / banner image

Getting Started:

From the sidebar click ‘Posts’ -> ‘Categories’
Select an individual category from your list
Paste the url or upload the image of the banner you’d like to use into the “Banner Image Url” field
That’s it, your banner should now be displaying on your category page.
Remove image by deleting the url from the edit category page.

You can hide the automatic image placement by unchecking “Automatically insert banner above main content of category page” while on posts to display its necessary to check the second checkbox.
You can then place the template tag wp_show_category_banner() in your custom category template to customize the position of the image in your markup. Note – this tag must be placed on category templates – not posts templates.
For posts template copy and paste shortcode do_shortcode( ‘[category_post_banner]’ ) at desired location.
Plugin’s Official Documentation and Support Page

延伸相關外掛

文章
Filter
Apply Filters
Mastodon