Linux 软件免费装
Banner图

4WP Smart Link

开发者 4wpdev
anatolikkk
更新时间 2026年5月13日 21:17
PHP版本: 7.4 及以上
WordPress版本: 6.9
版权: GPLv2 or later
版权网址: 版权信息

标签

link blocks gutenberg cover query loop

下载

1.0.0

详情介绍:

4WP Smart Link adds inspector controls and toolbar shortcuts so editors can: Frontend markup wraps the rendered Cover block in a standards-compliant anchor when a URL resolves.

安装:

  1. Upload the plugin folder to wp-content/plugins/ or install the ZIP through Plugins → Add New.
  2. Activate 4WP Smart Link through the Plugins screen.

常见问题:

Does this replace native Cover linking?

Cover does not provide the same link semantics; 4WP Smart Link layers an <a> wrapper server-side.

Does it depend on other 4WP plugins?

No. It runs standalone.

Will the editor preview match the front end?

The link wrapper is applied on the front end only (via render_block). The block canvas does not wrap Cover in the same <a>, so spacing or theme link styles might differ slightly until you preview the published page.

Accessibility: card-as-one-link pattern

Wrapping the whole Cover in an <a> is valid when inner blocks do not contain other links or interactive controls. Nested <a> elements are invalid HTML and hurt accessibility—avoid links/buttons inside a Cover that already has Smart Link enabled.

SEO rel when opening in a new tab

For target="_blank" the plugin adds noopener and noreferrer to rel if missing, while preserving your nofollow and other tokens.

更新日志:

1.0.0