[WordPress] 外掛分享: Display URL Params

首頁外掛目錄 › Display URL Params
WordPress 外掛 Display URL Params 的封面圖片
100+
安裝啟用
尚無評分
2371 天前
最後更新
問題解決
WordPress 4.0+ v1.1 上架:2019-09-11

內容簡介

URL 參數是添加到 URL 末端的標籤,通常用於追蹤目的或動態內容插入。
最常見的 URL 參數類型是 UTM 參數,由 Google 和 Facebook 廣告鏈接使用,以了解您的訪問者如何與您的廣告互動。

使用我們的動態文字替換 shortcode,您可以訪問 URL 中的查詢字符串中的 URL 參數,並在您的頁面、文章甚至用於填寫表格中顯示它。

與 ACF、Beaver Builder、Visual Composer (WPBakery Page Builder) 等一起使用

用例 1 – 在頁面文本中使用 URL 參數

如果您已經知道了有關位置或某人姓名的信息,您可以在頁面上使用 URL 參數來動態顯示這些信息。

確保頁面的 URL 包括您想要使用的參數,例如 https://mylandingpage.domain.com/?location=Sydney&name=Chris

然後您可以編寫頁面上任何文本元素的副本,以包括這些參數,比如“你好,[URLParam param=’name’]!歡迎來到[URLParam param=’location’]!”

這個例子將顯示為“你好 Hannes!歡迎來到悉尼!”

直接顯示 GET 參數
[URLParam param='paramname']

顯示名為 paramname 的 GET 的值(在示例 URL 中是'Hannes'),或如果未給出,則顯示“空白值”。

Hello Hannes!

顯示名為 paramname 的 GET 的值,或如果未給出,則顯示空格

外掛標籤

開發者團隊

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

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

原文外掛簡介

URL parameters are tags that are added to the end of your URL, usually for tracking purposes or for dynamic content insertion.
The most known type of URL parameters is UTM parameters, used by Google and Facebook ad links, in order to find out more about how your visitors interact with your ad.
With our Dynamic Text Replacement shortcode, you can access URL parameters in the Query String of the URL and display it on your pages, post or even use it to pre-fill forms.
Works with ACF, Beaver Builder, Visual Composer (WPBakery Page Builder) etc
Use case 1 – using URL parameters in the copy of your page
You can do this if you want to use URL parameters on your page to dynamically display things like location or someone’s name if you already have that information.
Make sure the page’s URL includes the parameters you want to use, such as https://mylandingpage.domain.com/?location=Sydney&name=Chris
Then you can write the copy of any text element on the page to include those parameters, such as “Hello [URLParam param=’name’]! Welcome to [URLParam param=’location’]!”
This example would display as “Hello Hannes! Welcome to Sydney!”
Displaying GET parameters directly
[URLParam param='paramname']

Shows the value of GET named paramname (‘Hannes’ in the example URL), or “blank value” if none given.
Hello Hannes!

Shows the value of GET named paramname, or empty space if none

延伸相關外掛

文章
Filter
Apply Filters
Mastodon