Title: Display URL Params
Author: dylanfeelscreative
Published: <strong>2019 年 9 月 12 日</strong>
Last modified: 2019 年 9 月 18 日

---

搜索插件

![](https://ps.w.org/display-url-params/assets/banner-772x250.png?rev=2155202)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/display-url-params/assets/icon-256x256.png?rev=2155202)

# Display URL Params

 作者：[dylanfeelscreative](https://profiles.wordpress.org/dylanfeelscreative/)

[下载](https://downloads.wordpress.org/plugin/display-url-params.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/display-url-params/#description)
 * [评价](https://cn.wordpress.org/plugins/display-url-params/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/display-url-params/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/display-url-params/#developers)

 [支持](https://wordpress.org/support/plugin/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

## 安装

Easiest way:

 1. Go to your WordPress admin control panel’s plugin page
 2. Search for ‘URL params’
 3. Click Install
 4. Click Activate on the plugin
 5. Start using shortcodes as described in our examples

If you cannot install from the WordPress plugins directory for any reason, and need
to install from ZIP file:

 1. Upload directory and contents to the `/wp-content/plugins/` directory, or upload
    the ZIP file directly in
     the Plugins section of your WordPress admin
 2. Follow the instructions from step 4 above

## 常见问题

  Is there a problem with the plugin under WordPress 4.2.3?

There is a known problem where the plugin shortcodes are used within URLs or other
HTML attributes which are themselves inside quotes.

Starting in the WordPress 4.2.3 security auto-update, you can no longer include 
shortcodes in HTML attributes. Previous to this WordPress update, you could set 
a field value like this: . Now you have to set it like this: or [urlparam htmltag
=”input” type=”text” name=”firstname” attr=”value” param=”FirstName” /]. If you 
are still using this shortcode the old way, unfortunately, WordPress simply won’t
process the shortcode and will return back the full shortcode text unprocessed.

  Are there any security issues with using URL params in content?

In short, no. To help protect your site against Reflected Cross Site Scripting, 
we sanitize output with esc_html() which prevents any HTML tags from being passed
in and displayed. This would prevent someone from passing in javascript, for example,
and having it execute on your site.

  How can I obtain support for this plugin?

Please help each other on the public support forums.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Display URL Params」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ dylanfeelscreative ](https://profiles.wordpress.org/dylanfeelscreative/)

[帮助将「Display URL Params」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/display-url-params)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/display-url-params/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/display-url-params/)，或通过[RSS](https://plugins.trac.wordpress.org/log/display-url-params/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/display-url-params/)。

## 更新日志

#### 1.1

Fixed error with http:// appearing before params on page.

#### 1.0

First version

## 额外信息

 *  版本 **1.1**
 *  最后更新：**7 年前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 4.0 或更高版本 **
 *  已测试的最高版本为 **5.2.24**
 *  语言
 * [English (US)](https://wordpress.org/plugins/display-url-params/)
 * 标签
 * [dynamic content](https://cn.wordpress.org/plugins/tags/dynamic-content/)[GET](https://cn.wordpress.org/plugins/tags/get/)
   [params](https://cn.wordpress.org/plugins/tags/params/)[shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
   [vars](https://cn.wordpress.org/plugins/tags/vars/)
 *  [高级视图](https://cn.wordpress.org/plugins/display-url-params/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/display-url-params/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/display-url-params/reviews/)

## 贡献者

 *   [ dylanfeelscreative ](https://profiles.wordpress.org/dylanfeelscreative/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/display-url-params/)