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

The Insertr

描述

The Insertr allows marketers and site owners to dynamically insert words and phrases into landing pages. Control your parameters using a shortcode and simple query string in the page URL.

A fallback can be entered for cases where the URL does not contain the expected query string. Options are available for uppercase, lowercase and title case text.

Shortcode not working? We’ve also created a plugin called “Shortcode Enablr” to enable shortcodes in common places that WordPress doesn’t display them by default – including ACF fields and YoastSEO titles.

Usage

Add the following shortcode where you wish to insert a dynamic word or phrase:

[insertr key=”{urlParameter}” fallback=”{fallbackWord}”]

In the shortcode, the “key” option contains the URL parameter you’d like to use.

The “fallback” option contains the fallback word to be displayed if the URL does not contain a query string using the URL parameter you’ve defined.

For example:

We’ll set the URL parameter to be “keyword” which we’ll assign a value for in the URL. Our fallback word will be “PPC Agency” if the correct query string isn’t used.

[insertr key=”keyword” fallback=”PPC Agency”]

Our link for the page will use a query string with the parameter set above, “keyword”, and the value we’d like to use – in this case we want to dynamically insert “digital agency”.

herdl.com?keyword=digital%20agency

When this URL is used to visit our landing page, all instances of the shortcode will display “digital agency”. If the query string is not used, all instances of the shortcode will display “ppc agency”.

For reference, “%20” is the URL encoded value for a space.

Advanced Usage

You can use multiple shortcodes on the page to dynamically insert different words and phrases. This will require you to use multiple query parameters that are separated by an ampersand, “&”, as shown below.

For example:

[insertr key=”keyword” fallback=”PPC Agency”]

[insertr key=”other” fallback=”PPC Management”]

herdl.com?keyword=digital%20agency&other=digital%20experts

In the example above, the first shortcode will display “digital agency” and the second shortcode will display “digital experts”.

You can also set the letter case using an additional option in the shortcode for uppercase, lowercase and title case. This will determine the letter case of the dynamically inserted words and also the fallback words.

For example:

[insertr key=”keyword” fallback=”PPC Agency” case=”upper”]

herdl.com?keyword=digital%20agency

This would display the inserted words in uppercase:
“DIGITAL AGENCY”

[insertr key=”keyword” fallback=”PPC Agency” case=”lower”]

herdl.com?keyword=digital%20agency

This would display the inserted words in lowercase:
“digital agency”

[insertr key=”keyword” fallback=”PPC Agency” case=”title”]

herdl.com?keyword=digital%20agency

This would display the inserted words in title case:

“Digital Agency”

安裝

You can download the latest release as a .zip then head over to your site to install this manually.

Once this plugin has been approved on the WordPress marketplace we will update the repository with a link.

常見問題

There are currently no frequently asked questions for this project.

評價

2019年12月12日
Highly recommended, and well-built plugin. A must for any Google Ads manager!
閱讀全部2個評價

貢獻者及開發者

“The Insertr” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 The Insertr 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2.0

  • Add ability to use shortcodes on ACF and Yoast SEO

1.1.0

  • Use the correct WordPress escaping and sanitisation functions.

1.0.0

  • Initial release.