Title: Dynamic Number Insertion
Author: Ryan Howard
Published: <strong>2025 年 9 月 21 日</strong>
Last modified: 2025 年 9 月 21 日

---

搜尋外掛

![](https://ps.w.org/dynamic-number-insertion/assets/banner-772x250.png?rev=3365387)

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

![](https://ps.w.org/dynamic-number-insertion/assets/icon-256x256.png?rev=3365391)

# Dynamic Number Insertion

 由 [Ryan Howard](https://profiles.wordpress.org/ryhowa/) 開發

[下載](https://downloads.wordpress.org/plugin/dynamic-number-insertion.1.0.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/dynamic-number-insertion/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/dynamic-number-insertion/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/dynamic-number-insertion/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/dynamic-number-insertion/#developers)

 [技術支援](https://wordpress.org/support/plugin/dynamic-number-insertion/)

## 外掛說明

Dynamic Number Insertion (DNI) allows you to automatically replace phone numbers
across your WordPress site based on the page URL. Perfect for businesses with multiple
locations, marketing campaigns with unique tracking numbers, or any situation where
you need different phone numbers on different pages.

The plugin intelligently detects various phone number formats and replaces them 
consistently throughout the entire page – including headers, footers, widgets, and
content areas. It works seamlessly with your existing theme and plugins, requiring
no code modifications.

Phone numbers are replaced before the page loads, ensuring compatibility with call
tracking services like CallRail and other JavaScript-based tracking solutions.

**Key Features:**

✅ Automatic phone number format detection (handles parentheses, dashes, dots, spaces)

✅ URL-based replacement rules for precise targeting ✅ Works everywhere – headers,
footers, widgets, menus, and content ✅ Compatible with page builders and themes
✅ No coding required – simple dashboard interface ✅ Preserves SEO and tracking
scripts ✅ Lightweight and performance-optimized

**Use Cases:**

 * **Multi-location businesses** – Show local phone numbers on location-specific
   pages
 * **Landing pages** – Use unique tracking numbers for different marketing campaigns
 * **A/B testing** – Test different phone numbers to measure conversion rates
 * **Franchises** – Let each franchise location have their own contact number
 * **Service area pages** – Display area-specific phone numbers automatically

## 安裝方式

 1. Upload the plugin files to `/wp-content/plugins/dynamic-number-insertion/`
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Navigate to **Settings  Phone Manager**
 4. Add your first rule by entering:
 5.  * Original Number (the number currently on your site)
     * Replacement Number (the number you want to display)
     * URL/Page (the specific page where replacement should occur)
 6. Click “Add Rule” and the replacement will be active immediately

## 常見問題集

### How does the plugin detect phone numbers?

The plugin automatically detects common phone number formats including:
 – (555)
123-4567 – 555-123-4567 – 555.123.4567 – 5551234567 – +1-555-123-4567 And many other
variations with or without country codes, parentheses, spaces, and separators.

### Will this work with my theme?

Yes! The plugin works at the output level, capturing and modifying the final HTML
before it’s sent to the browser. This means it works with any theme or page builder.

### Does it work with call tracking services like CallRail?

Yes. The phone number replacement happens during PHP processing, before the page
loads in the browser. This means JavaScript-based call tracking services can still
function normally on top of the replaced numbers.

### Can I use multiple rules for the same page?

The plugin uses exact URL matching, and the most specific rule takes priority. Each
URL can have one active rule at a time.

### Will this slow down my site?

No. The plugin is highly optimized and uses efficient output buffering. The replacement
process adds minimal overhead (typically less than a few milliseconds per page load).

### Can I target specific pages or posts?

Yes. Enter the exact URL path for any page, post, or custom post type. For example:
–`/
contact/` for your contact page – `/locations/austin/` for a specific location page–`/
landing/campaign-1/` for a marketing landing page

### Does it work with phone numbers in images?

No, the plugin only replaces text-based phone numbers. Phone numbers embedded in
images cannot be dynamically replaced.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈Dynamic Number Insertion〉的開發相關工作。

參與者

 *   [ Ryan Howard ](https://profiles.wordpress.org/ryhowa/)
 *   [ Pavlo Samsonov ](https://profiles.wordpress.org/samsonovteamwork/)
 *   [ Complete SEO ](https://profiles.wordpress.org/completewebresources/)

[將〈Dynamic Number Insertion〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/dynamic-number-insertion)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/dynamic-number-insertion/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/dynamic-number-insertion/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/dynamic-number-insertion/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/dynamic-number-insertion/)。

## 變更記錄

#### 1.0.2

Updated icons

#### 1.0.1

 * Added uninstall.php file to properly clean up plugin data (options) when the 
   plugin is deleted.
 * Improved sanitization and validation of user inputs in the admin settings page
   for better security.
 * Minor code cleanup and consistency fixes in admin and replacer classes.

#### 1.0.0

 * Initial release
 * URL-based phone number replacement rules
 * Automatic format detection for phone numbers
 * Support for headers, footers, widgets, and content areas
 * Simple dashboard interface for managing rules
 * Compatible with call tracking services
 * Intelligent detection of phone number variations
 * Works with any theme or page builder

## 中繼資料

 *  版本 **1.0.2**
 *  最後更新 **1 年前**
 *  啟用安裝數 **10+**
 *  WordPress 版本需求 ** 5.8 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.10**
 *  PHP 版本需求 ** 7.2 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/dynamic-number-insertion/)
 * 標籤:
 * [call tracking](https://tw.wordpress.org/plugins/tags/call-tracking/)[dni](https://tw.wordpress.org/plugins/tags/dni/)
   [dynamic number insertion](https://tw.wordpress.org/plugins/tags/dynamic-number-insertion/)
   [phone numbers](https://tw.wordpress.org/plugins/tags/phone-numbers/)
 *  [進階檢視](https://tw.wordpress.org/plugins/dynamic-number-insertion/advanced/)

## 評分

這個項目尚無任何評論記錄。

[撰寫評分](https://wordpress.org/support/plugin/dynamic-number-insertion/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/dynamic-number-insertion/reviews/)

## 參與者

 *   [ Ryan Howard ](https://profiles.wordpress.org/ryhowa/)
 *   [ Pavlo Samsonov ](https://profiles.wordpress.org/samsonovteamwork/)
 *   [ Complete SEO ](https://profiles.wordpress.org/completewebresources/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/dynamic-number-insertion/)