[WordPress] 外掛分享: Related Links Customized By Page

首頁外掛目錄 › Related Links Customized By Page
10+
安裝啟用
尚無評分
5248 天前
最後更新
問題解決
WordPress 3.3+ v1.1 上架:2012-01-31

內容簡介

該外掛可讓您使用一行程式碼在您的網站上顯示針對每個頁面進行自訂的相關連結。

它有兩個功能:維護與您頁面名稱相符的連結類別名稱組,以及提供代碼片段顯示任何類別與當前頁面相符的連結。

若要在特定頁面上顯示連結:

在任何您想要顯示連結清單的地方放置 <?php srd_make_custom_link(); ?>。
在「連結」選項卡中,建立您想要的連結數量,然後為每個連結分配與您想要顯示它的頁面相符的類別名稱。

這樣將顯示帶有類別「related-link」和具備類別「related-links-title」的 <h3> 清單。接著,您可以使用 CSS 對它們進行樣式設定。如果您想要將它們垂直堆疊,請為連結設置 CSS 屬性「display: block;」。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Related Links Customized By Page」→ 直接安裝(推薦)

原文外掛簡介

This plug-in lets you use a single line of code to display related links customized to each page on your site.
It does two things: maintains a group of link category names that match your page names, and provides a code snippet to display any links with categories that match the current page.
To have a link show up on a given page:

Put anywhere you want a link list to appear.
In the Links tab, create as many links as you want. Then assign each link the category name that matches the page(s) you want it to appear on.

That will display a list of links with the class “related-link”, and an

with the class “related-links-title”. You can then style them with CSS. If you want them to stack vertically, give the links the CSS property “display:block;”.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon