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

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的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://cn.wordpress.org/plugins/wpmc/#description)
 * [评价](https://cn.wordpress.org/plugins/wpmc/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wpmc/#installation)
 * [开发进展](https://cn.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 或更高版本 **
 *  已测试的最高版本为 **2.3.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/wpmc/)
 * 标签
 * [city](https://cn.wordpress.org/plugins/tags/city/)[mini](https://cn.wordpress.org/plugins/tags/mini/)
 *  [高级视图](https://cn.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)