Title: WPMC
Author: Kars-T
Published: <strong>2008 年 2 月 2 日</strong>
Last modified: 2008 年 2 月 3 日

---

搜尋外掛

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

![](https://s.w.org/plugins/geopattern-icon/wpmc.svg)

# WPMC

 由 [Kars-T](https://profiles.wordpress.org/kars-t/) 開發

[下載](https://downloads.wordpress.org/plugin/wpmc.1.zip)

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

 [技術支援](https://wordpress.org/support/plugin/wpmc/)

## 外掛說明

Plugin that creates _automatic links_ to you _MyMiniCity_ and displays its data.
_Many settings and editable output._

The link to you city will be altered in regards of the city needs. Those needs are
configurated by the thresholds. For example: If you set an industry threshold of
5 unemployment up to 5% will be tolerated. But after this the industry link will
be used to direct people to your city.

The html output for content pages can be custimised in anyway you want. Just use
the variables and build the html as you like.

The varaibles available can be found in the backend.

This plugin caches your cities XML. It will update _only every 5 minutes_. This 
is a caching mechanism to avoid calling to a different webpage everytime a page 
from your blog is loaded.

If you just want a simple link to your city you can use:

**{minicity_link}**

If you want the full html output use:

**{minicity}**

For php integration use:

**`WPMC_getLink()`**

This function will return the link to you city. Do something like this:

    ```
    if(function_exists('WPMC_getLink')){     echo '<a href="'.WPMC_getLink().'">MyCity</a>'; } 
    ```

**`WPMC_displayCity()`**

This function will output the whole html. Use it like this:

    ```
    if(function_exists('WPMC_displayCity')){     echo WPMC_displayCity(); } 
    ```

You can pass a different custom html to this function like this:

    ```
    if(function_exists('WPMC_displayCity')){     echo WPMC_displayCity('<h1>%name%</h1>'); } 
    ```

## 安裝方式

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Go to the options section. Take a look at the settings and enter at least your 
    MyMiniCity Name.
 4. Place **{minicity}** in your pages or posts

## 常見問題集

None right now

## 使用者評論

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

## 參與者及開發者

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

參與者

 *   [ Kars-T ](https://profiles.wordpress.org/kars-t/)

[將〈WPMC〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wpmc)

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

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

## 中繼資料

 *  版本 **1**
 *  最後更新 **18 年前**
 *  啟用安裝數 **少於 10 次**
 *  WordPress 版本需求 ** 2.3.2 或更新版本 **
 *  已測試相容的 WordPress 版本 **2.3.2**
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpmc/)
 * 標籤:
 * [city](https://tw.wordpress.org/plugins/tags/city/)[mini](https://tw.wordpress.org/plugins/tags/mini/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpmc/advanced/)

## 評分

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

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

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

## 參與者

 *   [ Kars-T ](https://profiles.wordpress.org/kars-t/)

## 技術支援

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

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

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Karsten%40plamo%2ede&item_name=Wordpress%20Plugins&no_shipping=0&no_note=1&tax=0&currency_code=EUR&lc=EN&bn=PP%2dDonationsBF&charset=UTF%2d8)