4WP Smart Link

4WP Smart Link

By 4wpdev
Details
View on WordPress

4WP Smart Link adds inspector controls and toolbar shortcuts so editors can:

  • Attach a custom URL to a Cover block output.
  • Use a dynamic “current post” permalink inside Query Loop contexts.

Frontend markup wraps the rendered Cover block in a standards-compliant anchor when a URL resolves.

Frontend markup

When a link is output, the plugin wraps the Cover block with an <a> element:

  • Base class: forwp-smart-link-wrapper
  • Block modifier (Cover): forwp-smart-link-wrapper--cover
  • Machine-readable hint: data-forwp-smart-link="cover"

Themes may style .forwp-smart-link-wrapper globally or scope overrides per modifier.

Developer / pre-release checklist

Before uploading banners or screenshots:

  • Manual QA in the block editor: custom URL, reset, dynamic “Post Link” inside a Query Loop, open-in-new-tab, nofollow / relation field, accessibility label.
  • Frontend: confirm <a> href, rel when target is _blank, and no empty wrapper when URL resolves empty.

Details

Plugin code:
4wp-smart-link
Plugin version:
1.0.0
Author:
Outdated:
No
WP version:
6.4 or higher
PHP version:
7.4 or higher
Test up to WP version:
6.9.4
Total installations:
0
Last updated:
2026-05-12
Rating:
Times rated:
0
blocks
cover
gutenberg
link
query-loop