이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

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

FAQ

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”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “Display URL Params”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.1

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

1.0

First version