跳到内容

WPMC

v1

Kars-T · 2008年2月2日 上架

Plugin that creates automatic links to you MyMiniCity and displays its data.

正在使用
10 以下
评分
暂无
累计下载
1,623
最近更新
2008年2月4日
需要 WordPress 2.3.2+已测试到 2.3.2

贡献者

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>'); } 

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums