[WordPress] 外掛分享: HandL Hide Content

首頁外掛目錄 › HandL Hide Content
WordPress 外掛 HandL Hide Content 的封面圖片
10+
安裝啟用
尚無評分
606 天前
最後更新
問題解決
v1.1 上架:2016-02-18

內容簡介

透過這個簡單卻實用的外掛,您可以創建自己的規則,以隱藏 WP 文章或頁面中的內容。

使用起來非常簡單:

如果您只想在 foo=bar 時隱藏您的內容。請使用以下內容:

[HandL_HIDE foo=bar]

您的豐富內容在這裡,您可以包含任何東西:文字、圖片甚至視頻(嵌入)。

[/HandL_HIDE]

上面的示例內容只會在以下 URL 中隱藏

http://yourdomain.com/?foo=bar
http://yourdomain.com/?foo=bar&anotherfoo=anotherbar 等等..

上面的示例內容不會在以下 URL 中隱藏

http://yourdomain.com/?foo=otherbar
http://yourdomain.com/?foo= 等等..

同樣地,如果您只想在 foo=bar 時顯示您的內容。請使用以下內容:

[HandL_SHOW foo=bar]

您的豐富內容在這裡,您可以包含任何東西:文字、圖片甚至視頻(嵌入)。

[/HandL_SHOW]

上面的示例內容只會在以下 URL 中顯示

http://yourdomain.com/?foo=bar
http://yourdomain.com/?foo=bar&anotherfoo=anotherbar 等等..

上面的示例內容不會在以下 URL 中顯示

http://yourdomain.com/?foo=otherbar
http://yourdomain.com/?foo= 等等..

您也可以在邏輯中使用 OR 語句。例如

如果您想在 foo=bar1 或 foo=bar2 時顯示內容,只需使用

[HandL_SHOW foo="bar1||bar2"]

隱藏縮略語的工作方式也很類似

[HandL_HIDE foo="bar1||bar2"]

您也可以在 Optimize Press 中使用縮略語,使用方式在截圖部分顯示。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「HandL Hide Content」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

With this very simple yet useful plugin, you can create your own rule for hiding content in your WP post or page.
Usage is very simple:
if you want to hide your content ONLY when foo=bar. Use the following.
[HandL_HIDE foo=bar]

Your rich content goes here. You can include anything: text, image and yes even videos (embed).

[/HandL_HIDE]

The example content above will only be HIDDEN for the following URLS
http://yourdomain.com/?foo=bar
http://yourdomain.com/?foo=bar&anotherfoo=anotherbar etc..

The example content above will NOT be hidden for the following URLS
http://yourdomain.com/?foo=otherbar
http://yourdomain.com/?foo= etc..

Similarly if you want to show your content ONLY when foo=bar. Use the following.
[HandL_SHOW foo=bar]

Your rich content goes here. You can include anything: text, image and yes even videos (embed).

[/HandL_SHOW]

The example content above will only be SHOWED for the following URLS
http://yourdomain.com/?foo=bar
http://yourdomain.com/?foo=bar&anotherfoo=anotherbar etc..

The example content above will NOT be visible for the following URLS
http://yourdomain.com/?foo=otherbar
http://yourdomain.com/?foo= etc..

You can also use OR statement in your logic. For example
if you want to show the content when foo=bar1 OR foo=bar2, simply use
[HandL_SHOW foo="bar1||bar2"]

hide shortcode works similar way as well
[HandL_HIDE foo="bar1||bar2"]

You can use the shortcode in Optimize Press as well. Usage is shown in screenshot section.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon