Title: MultiTags
Author: Stefan
Published: <strong>2010 年 9 月 13 日</strong>
Last modified: 2015 年 1 月 27 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

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

# MultiTags

 作者：[Stefan](https://profiles.wordpress.org/svogel/)

[下载](https://downloads.wordpress.org/plugin/multitags.0.6.zip)

 * [详情](https://cn.wordpress.org/plugins/multitags/#description)
 * [评价](https://cn.wordpress.org/plugins/multitags/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/multitags/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/multitags/#developers)

 [支持](https://wordpress.org/support/plugin/multitags/)

## 描述

Ever noticed that on tag-pages multiple tags are possible? E.g. if you want to show
all
 posts having “tag1” AND “tag2”, just go to http://yourwordpressblog/tag/tag1
+tag2

But only “tag1” is correctly displayed (see screenshots).
 With this plugin you 
can use more than one tag correctly. This is especially interesting if you want 
to optimize some key phrases (like “tag1 tag2”) for searchengines.

Moreover this plugin can add the description of the tags to your tag-pages, simply
put

    ```
    <?php echo multi_tags_get_description('<p>', '</p>'); ?>
    ```

into your theme-file “tag.php”.
 To display the correct tags, just replace the call
to

    ```
    single_tag_title( '', false ) 
    ```

with

    ```
    if (function_exists('multi_tags_get_title'))
        echo multi_tags_get_title('and', 'or')
    else
        single_tag_title( '', false )
    ```

The inclusion of your tags into “meta keywords” resp. the inclusion of the tag-descriptions

in “meta description” is done by the plugin. Simply check the corresponding checkboxes
in the MultiTags-setting-page.

For more examples and background information have a look at:

http://www.vogel-nest.de/wp_multitags_plugin

### Thanks

To Frank Bueltge http://bueltge.de for motivation and checking the first draft.

## 屏幕截图

 * [[
 * The usual display without MultiTags-plugin without_multitags.png
 * [[
 * Better title, heading on multiple tags with the MultiTags-plugin with_multitags.
   png
 * [[
 * Settings provided, choose if you want to add keywords/description in head-meta-
   tag of your tag-pages settings.png
 * [[
 * Wordpress now provides the correct multiple-tag-feed

## 安装

Just the usual procedure

 1. Download und unpack the plugin
 2. Upload the directory “multitags” to the `/wp-content/plugins/` directory
 3. Activate the plugin through the ‘Plugins’ menu in WordPress
 4. adapt the settings on the settings-page “MultiTags”
 5. to display the correct headers on the tags-pages put `multi_tags_get_title('and','
    or')` into your tag.php in your theme-folder

## 常见问题

  How to provide the correct feed-url on multi-tag-pages?

You have to handcraft a little bit and change the core. However I don’t recommend
it, because after upgrading you
 have to insert your change again. So be careful.
Go to wp-includes/general-template.php and find the lines (around lineno 2294):

    ```
    $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name );
    $href = get_tag_feed_link( $term->term_id );
    ```

replace it with:

    ```
    if ( function_exists('multi_tags_get_title') )
        $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], multi_tags_get_title() );
    else
        $title = sprintf( $args['tagtitle'], get_bloginfo('name'), $args['separator'], $term->name );
    if ( function_exists('multi_tags_get_tag_feed_link') )
        $href = multi_tags_get_tag_feed_link( $term->term_id );
    else
        $href = get_tag_feed_link( $term->term_id );
    ```

## 评价

此插件暂无评价。

## 贡献者及开发者

「MultiTags」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Stefan ](https://profiles.wordpress.org/svogel/)

[帮助将「MultiTags」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/multitags)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/multitags/)，查看[SVN仓库](https://plugins.svn.wordpress.org/multitags/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/multitags/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/multitags/)。

## 更新日志

#### 0.6

Adapted to wordpress >= 4
 Corrected feed-url-code in readme.txt

#### 0.5

 * fixed dump slipped in letter, that lead to syntax-error
 * I’m really sorry.

#### 0.4

 * fixed typo in readme.txt
 * now testet with 3.2.1
 * MultiTags ist broken in WP 3.1.1 due to a bug in WP https://core.trac.wordpress.
   org/ticket/17054

#### 0.3

 * added function multi_tags_get_tag_feed_link to support correct feeds

#### 0.2

 * corrected fatal-error on activation
 * several clean-ups
 * corrected versioning – sorry, my first plugin :-/

#### 0.1

initial version

## 额外信息

 *  版本 **0.6**
 *  最后更新：**11 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.8 或更高版本 **
 *  已测试的最高版本为 **4.1.42**
 *  语言
 * [English (US)](https://wordpress.org/plugins/multitags/)
 * 标签
 * [meta description](https://cn.wordpress.org/plugins/tags/meta-description/)[meta keywords](https://cn.wordpress.org/plugins/tags/meta-keywords/)
   [multiple tags](https://cn.wordpress.org/plugins/tags/multiple-tags/)[seo](https://cn.wordpress.org/plugins/tags/seo/)
 *  [高级视图](https://cn.wordpress.org/plugins/multitags/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/multitags/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/multitags/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/multitags/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/multitags/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/multitags/reviews/?filter=1)

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

[查看全部评论](https://wordpress.org/support/plugin/multitags/reviews/)

## 贡献者

 *   [ Stefan ](https://profiles.wordpress.org/svogel/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/multitags/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://www.piratenspielzeug.com)