WordPressの関連記事・タグ表示をUTWからSimple Tagsへ
Blog 2月 9th, 2010WordPress MEのタグ付けには、Ultimate Tag Warriorプラグイン(UTW)を入れていましたが、WordPress日本語版には対応していません。(WordPress v2.3からWordPress本体でタグがサポートされました)
また、UTWの関連記事を表示するUTW mod Related Postプラグインも使えません。今回の移行を期に、UTWのタグの再利用&関連記事表示等には、Simple Tagsで代用しましたので、その方法をご紹介します。
WordPressには、管理画面からUTWのタグを再利用して、WordPress日本語版のタグとして使うインポート機能があり、
WordPress管理画面>ツール>インポート>Ultimate Tag Warrior
から簡単にインポートすることができます。
関連記事や関連タグを表示したい場合は、Simple Tagsプラグインを導入し、以下を表示させたいテンプレートファイルに追加します。
関連記事を表示させたい場合(utw_mod_related_postと同様)
st_related_posts()
関連タグを表示させたい場合(ShowTagsForCurrentPostと同様)
st_related_tags()
* ループ内で使用
タグクラウドを表示させたい場合(UTW_ShowWeightedTagSetと同様)
st_tag_cloud()
投稿した記事のタグを表示したい場合
st_the_tags()
表示方法等は、WordPress管理画面>設定>Simple Tagsから変更可能です。
Simple Tagsの詳しい解説はこちらのページが参考になります。
WordPress ME+UTWの時に比べて
・管理画面から表示方法を変更できる
・タグの名前とスラッグが分けられる
・タグの説明のフィールドがある
(出力するには、tag_description() )
という点、素晴らしいです。
12月 10th, 2015 at 8:25:43
I’ll certainly appear into the web sites that you have advised given that I have a lot more than my share of these
6-10% of present cards that are in no way utilised.
12月 12th, 2015 at 22:38:58
Desde otra perspectiva Max Weber llama nuesttra atención a
los aspectos organizacionales de las empresas.
2月 26th, 2016 at 0:31:38
Hey I am so happy I found your website, I really found
you by accident, while I was looking on Askjeeve for something else, Regardless I am here now and would just like to say many thanks for a incredible post and
a all round exciting blog (I also love the theme/design), I don’t have time to read it all at the minute but I have bookmarked
it and also added your RSS feeds, so when I have time
I will be back to read more, Please do keep up the superb b.
http://www.portal-pisarski.pl/profil/kjmargin55kh
4月 3rd, 2016 at 15:06:28
Atua nas diversas áreas do Direito Civil, no Direito Urbanístico e
no Planejamento Urbano.