Title: PLTarget &#8211; Post Links Target
Author: PL Target
Published: <strong>2026 年 7 月 17 日</strong>
Last modified: 2026 年 7 月 17 日

---

搜尋外掛

![](https://s.w.org/plugins/geopattern-icon/pltarget-post-links-target.svg)

# PLTarget – Post Links Target

 由 [PL Target](https://profiles.wordpress.org/pltarget/) 開發

[下載](https://downloads.wordpress.org/plugin/pltarget-post-links-target.1.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/pltarget-post-links-target/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/pltarget-post-links-target/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/pltarget-post-links-target/#developers)

 [技術支援](https://wordpress.org/support/plugin/pltarget-post-links-target/)

## 外掛說明

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.

## 螢幕擷圖

[⌊Main settings (target window options).⌉⌊Main settings (target window options).⌉[

Main settings (target window options).

[⌊Miscellaneous settings.⌉⌊Miscellaneous settings.⌉[

Miscellaneous settings.

[⌊Example page showing links for different target window types.⌉⌊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 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 an external popup window.

[⌊Example of a link opening in a separate browser window.⌉⌊Example of a link opening
in a separate browser window.⌉[

Example of a link opening in a separate browser window.

## 常見問題集

### When attempting to open a link in a popup window, the browser displays an error message similar to: “To protect your security, website will not allow your browser to display the page if another site has embedded it”. Is there any way to avoid this?

Some websites prohibit opening their pages within embedded iframes for security 
reasons. Since popup windows also embed iframes internally, this restriction applies
to them as well.

To avoid such issues, these websites should be added to the “URLs excluded for iframe”
list in the plugin settings (this forces their pages to open in a separate browser
window/tab). If there are many such links, it is recommended to use only browser
windows as target containers.

### Certain interface elements in WordPress posts (such as frontend plugin edit buttons, pagination links, etc.) are implemented as URLs that must open within the current page. How can I prevent a target window from being assigned to them?

To resolve this, you need to list the specific URL fragments associated with the
ignored interface elements in the “Exclude URLs with the next fragments” field within
the plugin settings. For example, the edit button for the WP-Recall plugin contains
the “rcl-post-edit” GET variable, which should be added to this list.

### The Simple Lightbox plugin automatically opens image links inside its own popup window, even if they are meant to load inside your plugin’s embedded iframe or external popup window. How can I prevent this?

Some image lightbox plugins, like Simple Lightbox, automatically intercept all image
links on a page. To avoid this behavior, we recommend either not using target windows
for images or switching to a plugin that allows their selective targeting (such 
as Meow Lightbox).

### Does the plugin support WordPress Multisite?

Yes, it is fully compatible with WordPress Multisite.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈PLTarget – Post Links Target〉的開發相關工作。

參與者

 *   [ PL Target ](https://profiles.wordpress.org/pltarget/)

〈PLTarget – Post Links Target〉外掛目前已有 1 個本地化語言版本。 感謝[全部譯者](https://translate.wordpress.org/projects/wp-plugins/pltarget-post-links-target/contributors)
為這個外掛做出的貢獻。

[將〈PLTarget – Post Links Target〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/pltarget-post-links-target)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/pltarget-post-links-target/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/pltarget-post-links-target/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/pltarget-post-links-target/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/pltarget-post-links-target/)。

## 變更記錄

#### 1.0.0

 * Start version

## 中繼資料

 *  版本 **1.0.0**
 *  最後更新 **6 天前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 5.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0.2**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/pltarget-post-links-target/) 及 
   [Russian](https://ru.wordpress.org/plugins/pltarget-post-links-target/).
 *  [將這個外掛本地化為你的母語版本](https://translate.wordpress.org/projects/wp-plugins/pltarget-post-links-target)
 * 標籤:
 * [iframe](https://tw.wordpress.org/plugins/tags/iframe/)[nofollow](https://tw.wordpress.org/plugins/tags/nofollow/)
   [popup](https://tw.wordpress.org/plugins/tags/popup/)[target](https://tw.wordpress.org/plugins/tags/target/)
   [_blank](https://tw.wordpress.org/plugins/tags/_blank/)
 *  [進階檢視](https://tw.wordpress.org/plugins/pltarget-post-links-target/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/pltarget-post-links-target/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/pltarget-post-links-target/reviews/)

## 參與者

 *   [ PL Target ](https://profiles.wordpress.org/pltarget/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/pltarget-post-links-target/)