跳到内容

PLTarget (Post Links Target)

v1.0.1

PL Target · 2026年7月17日 上架

Opens post links inside a target window, which can be: an embedded iframe, an external popup, a separate browser window/tab.

正在使用
10 以下
评分
暂无
累计下载
334
最近更新
2026年7月31日
需要 WordPress 5.5+已测试到 7.0.9PHP 7.2+

贡献者

截图

Main settings (target window options).
Main settings (target window options).
Miscellaneous settings.
Miscellaneous settings.
Example page showing links for different target window types.
Example page showing links for different target window types.
Example of a link opening in an embedded iframe window.
Example of a link opening in an embedded iframe window.
Example of a link opening in an external popup window.
Example of a link opening in an external popup window.
Example of a link opening in a separate browser window.
Example of a link opening in a separate browser window.

Opens post links inside a target window of one of the following types: an internal embedded iframe, an external popup window, a separate browser window/tab. The type of window to be opened is mapped to the file extensions in the links via the plugin settings. By default, links to images and PDF files open in the internal embedded window, while all others open in an external popup or browser window (except for “technical” links to ZIP files and similar assets, which are downloaded within the current window).

Exceptions are provided for these rules in certain cases. For instance, to prevent the plugin from handling frontend UI elements within the post container (such as edit buttons), you can add their URL fragments to a dedicated exclusion list. Additionally, you can specify websites that block their pages from being loaded inside iframes due to security policies (the plugin will automatically open these in a separate browser window instead).

The plugin processes links from both the main “post_content” field and custom fields (including in Multisite mode). It scans links exclusively inside the post container and ignores standard UI components (menus, widgets, pagination, etc.).

Out of the box, target window assignment is configured only for links with a user-defined target=”_blank” attribute. It is assumed that authors decide which links should open externally, while the plugin simply manages the appearance of these windows. However, you can change this setting to apply the plugin’s logic to all links within a post.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums