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

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〉的開發相關工作。

參與者

將〈MultiTags〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

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