Title: Show/Hide Shortcode
Author: Lars Wallenborn
Published: <strong>2021 年 3 月 28 日</strong>
Last modified: 2025 年 1 月 3 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/showhide-shortcode.svg)

# Show/Hide Shortcode

 由 [Lars Wallenborn](https://profiles.wordpress.org/larsborn/) 開發

[下載](https://downloads.wordpress.org/plugin/showhide-shortcode.1.0.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/showhide-shortcode/)

## 外掛說明

This plugin allows you to easily add “Show more…” links to your site. Just enclose
the content to be hidden between `[showhide]` and `[/showhide]`. There is no modification
to the backend or fancy editor. Hence the code for this plugin is minimal and the
plugin should be easy to review for security issues as well not impact performance.

## 螢幕擷圖

[⌊Example view of the block editor.⌉⌊Example view of the block editor.⌉[

Example view of the block editor.

## 常見問題集

### Where do I need to click?

Use the block editor to add two blocks: `[showhide]` and `[/showhide]`. Everything
in between will be hidden and a link “Show more…” is displayed. When clicked, the
hidden content is revealed.

### Can I change the default “Show more…” text?

Yes, the `[showhide]` shortcode accepts the argument `show_caption`: `[showhide 
show_caption="Do you want to know more?"]Your Content[/showhide]\`\`\` Similarly,
use the`hide_caption` attribute to change the “Show less…” default caption.

## 使用者評論

![](https://secure.gravatar.com/avatar/cc88952fc450e4ef9ff8f700b3bb7b547dbe405487b39c579f8cb33a16fe6f32?
s=60&d=retro&r=g)

### 󠀁[Efficient and simple](https://wordpress.org/support/topic/efficient-and-simple-12/)󠁿

 [Sova](https://profiles.wordpress.org/oldteaowl/) 2025 年 2 月 19 日

Efficient and simple, love it

![](https://secure.gravatar.com/avatar/733f97fa734490dc6c2f53516f57161ac6263e203412e842d10e951cfa9188e6?
s=60&d=retro&r=g)

### 󠀁[It simply works](https://wordpress.org/support/topic/it-simply-works-60/)󠁿

 [rolzan](https://profiles.wordpress.org/rolzan/) 2021 年 7 月 21 日

No clutter, it simply works as it is intended. It would be better though if you 
could write this in vanilla JavaScript rather than relying to jQuery.

![](https://secure.gravatar.com/avatar/095c94ddff16d6d79643d43f09395db7761531fd5e58b35c54c79aef014b34cd?
s=60&d=retro&r=g)

### 󠀁[Love the simlicity.](https://wordpress.org/support/topic/love-the-simlicity/)󠁿

 [vtchernoff](https://profiles.wordpress.org/vtchernoff/) 2021 年 4 月 2 日

It works.

 [ 閱讀全部 3 則使用者評論 ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Show/Hide Shortcode〉的開發相關工作。

參與者

 *   [ Lars Wallenborn ](https://profiles.wordpress.org/larsborn/)

[將〈Show/Hide Shortcode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/showhide-shortcode)

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

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

## 變更記錄

#### 1.0.1

 * Updated “Tested up to” field to reflect current
 * Addresses XSS vulnerability in `show_caption` and `hide_caption` arguments

#### 1.0.0

 * Initial Release

## 中繼資料

 *  版本 **1.0.1**
 *  最後更新 **2 年前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 5.7 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 7.3 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/showhide-shortcode/)
 * 標籤:
 * [expander](https://tw.wordpress.org/plugins/tags/expander/)[read less](https://tw.wordpress.org/plugins/tags/read-less/)
   [Read more](https://tw.wordpress.org/plugins/tags/read-more/)[show more](https://tw.wordpress.org/plugins/tags/show-more/)
 *  [進階檢視](https://tw.wordpress.org/plugins/showhide-shortcode/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/showhide-shortcode/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/showhide-shortcode/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/showhide-shortcode/reviews/)

## 參與者

 *   [ Lars Wallenborn ](https://profiles.wordpress.org/larsborn/)

## 技術支援

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

 [檢視技術支援論壇](https://wordpress.org/support/plugin/showhide-shortcode/)