[WordPress] 外掛分享: 4WP Smart Link

首頁外掛目錄 › 4WP Smart Link
WordPress 外掛 4WP Smart Link 的封面圖片
全新外掛
安裝啟用
尚無評分
7 天前
最後更新
問題解決
WordPress 6.4+ PHP 7.4+ v1.1.0 上架:2026-05-11

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「4WP Smart Link」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

A plugin by 4wp.dev.
Demo video: https://www.youtube.com/watch?v=8ZGojkTl2CM
Query Loop cards and layout blocks (Cover, Group, Column) often need a large click target—open the post, a landing page, or a campaign URL—while titles, tags, and buttons inside the card keep their own links. Core does not offer whole-block linking for these containers.
4WP Smart Link adds toolbar and inspector controls on Cover, Group, and Column so you can:

Set a custom URL for Cover, Group, or Column.
In a Query Loop, link the block to the current post (uses the loop item’s post context).
Open the link in a new tab when you need to, with sensible rel handling for target="_blank".
Add optional relation (rel) tokens and an accessibility label when you need more than the visible text.

The actual clickable wrapper is added on the published front end when the URL resolves. If there is no URL, the block output is unchanged.
Important: When the block has no other links inside, the front end wraps it in a normal . When inner links exist (post title, terms, buttons, etc.), the plugin uses a clickable container (data-forwp-smart-link-url + a small front-end script) so link-in-link HTML is never output—inner links keep their own URLs.
Theme and integration developers
Anchor mode (no inner links): wraps markup in
with data-forwp-smart-link.
Host mode (inner links present): wraps markup in

文章
Filter
Apply Filters
Mastodon