Wp Affiliate Pro - The #1 Plugin For WordPress Blogs WPのアフィリエイトのプロ-、 # 1のプラグインをW ordPressのb logs
Powered by MaxBlogPress 電源をmaxblogpress

WordPressのハック# 15 :ハッキングのWordPressタグ| jtprattのブログミス
jtprattのブログミス


Home » Wordpress Hack #15: Hacking Wordpress Tags » WordPressのハック# 15 :ハッキングWordPressのタグ



Posted in: に投稿された:

ブログ-セットアップの作成カテゴリのイメージWordPressのカテゴリのイメージ
284 views 284再生回数


Please note: This page was originally written in English.ご注意ください:このページは、もともと英語で書かれています。

The original post can be viewed表示できるよう、元の投稿 hereここで .です。

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


Today we’ll learn How to add Tag Support by hacking your Wordpress theme! 今日我々に追加する方法を学びますタグのサポートをハッキングしてWordPressのテーマ!

This is day #15 ofこれは1日# 15 30 Wordpress Hacks in 30 Days 30日の30日間のWordPress hacks .です。

If you’re using Wordpress 2.3x or 2.5 or higher you have the ability to use “tags”. WordPressの2.3xをお使いの場合または2.5またはそれ以上の能力を使用する必要が"タグ"です。 If you use social media at all, you should already know what a tag is.社会のすべてのメディアを使用する場合、あなたは既に知ってどのようなタグです。 Basically it’s just a piece of metadata, a “descriptor” of some kind.基本的にそれは単に、作品のメタデータは、 "記述子"のいくつかの種類です。 When you blog, it’s also another way to pigeonhole and file your content.ブログのときに、別の方法を棚上げすることも、お客様のコンテンツやファイルです。 The implementation of tags in Wordpress is very important, because it keep people from “using categories as tags” as many of us have done over the years. WordPressのタグの実装は非常に重要なのは、保つための人々から"タグを使用して作成カテゴリとして"できるだけ多くの問い合わせが完了している。 There were dozens of plugins available to add tags to your Wordpress blog, but now all that functionality is available without using any plugins at all.多数のプラグインが利用できるようにしてWordPressのブログにタグを追加するが、今のすべてされ、機能が利用可能なプラグインを使用せずにすべてのです。

Think of categories as high level descriptions.高レベルのカテゴリーとして考えるの説明です。 What do you like to blog about?ブログについてはどんなことをですか? Movies, Music, Politics, and Web Design.映画、音楽、政治、およびウェブデザインです。 Those are categories.これらはカテゴリーです。 However, when you blog - the tags would be Obama, John Candy, AC/DC, and HTML.しかし、ときにブログ-小浜のタグは、ジョンキャンディ、なA C/ D C、およびH TMLです。 Get it?入手ですか? All you have to do is enter description tags when you blog, along with a category.あなたがこれを行うにはタグを入力するときにブログの説明書と一緒にするカテゴリをクリックします。 Now you’re probably wondering, what do I do with that information?今すぐ不思議には、おそらく、その情報をどのようにすればよいですか?

Depending on how old your theme is it may or may not have “tag support”, which means that it might not be coded to do anything at all with those tags you’re entering.あなたのテーマは何歳に応じて、またはことができないことがありますが"タグのサポート" 、と言うことかもしれないことには、何も先のすべての符号化と、これらのタグを入力します。 The first thing you can do is to add a (now famous) “tag cloud” in your side bar like I did, with this code:まず最初にすることができますを追加するには(今すぐに有名な) "タグの雲"にしてサイドバーのような私は、このコード:

 <?php if ( function_exists('wp_tag_cloud') ) : ?> <li> <h2>Popular Tags</h2> <ul> <?php wp_tag_cloud('smallest=8&largest=22'); ?> </ul> </li> <?php endif; ?> <ですか? PHPの場合( function_exists ( ' wp_tag_cloud ' ) ) :ですか? > <li> <h2>人気のタグ< /水素> <ul> <ですか? PHPのwp_tag_cloud ( '最小= 8 &最大規模= 22 ' ) ;ですか? > < / ul > < /李> <ですか? PHPのendif ;ですか? > 

If you want to know more about how that codes works and how you can modify it, visit theを知ってする場合は、コードの動作方法の詳細については、どのように変更することができますことは、次の Wordpress Codex Tag Cloud Pageタグの雲のページWordPressのコーデックス .です。

Another thing you can do is to add the tags you used beneath your post by adding some code to your single.php file (for single posts).あなたにできることはもう一つのタグを追加するときに使用して投稿者の下にいくつかのコードを追加してsingle.phpファイル( 1つの記事) 。 You could do it on your index.php home page as well, but I don’t much see the point in that.これを行うのホームページとしてindex.phpをしてくださいええと、しかし、私はあまり点を参照している。 All you have to do is add the following code near the end of the loop to display the tags used at the end of the post:あなたがこれを行うには、次のコードを追加して、ループの終わり近くにタグを表示するにするには、投稿の最後に使用される:

 <?php the_tags('<p>Tags: ', ', ', '</p>'); ?> <ですか? PHPのthe_tags ( ' <p>タグ: ' 、 ' 、 ' 、 " < /人> " ) ;ですか? > 

So, now we’ve talked about how to modify your theme to add the tags used after a post, and how to place a tag cloud in your sidebar (without using a plugin).そのため、今すぐ話を参照するにはお客様のテーマを変更して使用されるタグを追加して作成した後、雲のタグを配置するとどのようにしてサイドバー(プラグインを使用することなく) 。 Click on one of the links in my post (to a tag) or my tag cloud and you’ll see (much like a category page) it goes to a “tag” page, or something like site.com/tag/wordpress-hack.のいずれかのリンクをクリックして私のポスト(タグを参照して下さい) 、または雲とマイタグが表示さ(と同じように作成カテゴリのページに戻る)ことが参照して下さい"タグ"ページか、または何かのようなsite.com/tag/wordpress-ハックです。

Be default Wordpress will look for the “tag.php” file (that most themes don’t have), and if there isn’t one your archive.php will be used by default.デフォルトのWordPressを探すには、 " tag.php "ファイル(そのほとんどのテーマはありません) 、および1つのお客様のarchive.phpがない場合は、デフォルトでは使われています。 You could just leave this as-is, or create your own custom “tag.php” to make your tag pages unique.あなたはこの現状のまま残すだけか、または独自に作成してください" tag.php "してタグのページを作るユニークです。 One way to do this would be to add a “tag cloud” to the top of each tag page.これを行うには1つの方法を追加するには"タグの雲"へ戻るの各タグのページをご覧ください。 Theその Wordpress Codex Tag PageタグのページWordPressのコーデックス has more information on creating a custom tag.php file for your theme.より詳しい情報については、ファイルを作成するためのカスタムtag.phpあなたのテーマです。

This post was all about “how to add tag support to your Wordpress theme”.この投稿は、すべてについて"タグを追加する方法についてのサポートをしてWordPressのテーマ"です。 In a future post, I’ll show you what you need to know about tagged pages and Wordpress SEO.で、将来のポスト、私が詳細を知るためにどのようなタグを設定する必要があります。 WordPressのページとソです。 As always, if you have something to add to make this post better, or a question - comment now!いつものように、何かを追加する場合は、このポストを作るよいのか、それともある質問-コメントを今すぐプレイ!


Tags:タグ: , , , , ,

3 Responses to “Wordpress Hack #15: Hacking Wordpress Tags” 3つの応答を" WordPressのハック# 15 :ハッキングWordPressのタグ"

  1. unique articles ユニークな記事 Has the following to say...には、以下のように言ってやるが...

    You have a really good tutorial there quick and easy to follow, you should amke it into an article and do some article submissions with it to attract more people to your site.本当に良いチュートリアルをお持ちの迅速かつ容易に従うが、あなたのことをしなければならないいくつかの資料提出をサポートしてより多くの人々を引き付けることをあなたのサイトにします。

    Really like that and keep up the good work :)本当に良い状態を維持するようにと仕事: )

    unique articless last blog post..ユニークなarticless最終更新ブログの投稿.. The Art Of Online Writingて、アートがオンラインで書く

  2. Erika エリカ Has the following to say...には、以下のように言ってやるが...

    LOL I was just looking for this yesterday! lol私はただ、この昨日を探して! Thanks for the little tidbit!ほとんど話てくれてありがとう!

    Erikas last blog post..1最終更新erikasブログの投稿.. 1

  3. CJ cj Has the following to say...には、以下のように言ってやるが...

    Categories are nice to start your site off.カテゴリーはニースを開始するお客様のサイトにオフになります。 Use the descriptions of the categories to add keyword content like JT talks about and then the tags to get specific.カテゴリーの説明を使用してコンテンツを追加するキーワードのような特集jt話しますと入力し、特定のタグを取得します。 I don’t add tags till I have some pages going.私はありません私はいくつかのページにタグを追加まで行く。 .です。 .です。 looks bad to have one post in ten places.写りが悪い場所には1つのポストは10です。

    I haven’t found a problem with duplicate content using tags.私は重複したコンテンツが見つかりませんでしたに問題があるタグを使用しています。 I know it’sa big topic but google seems to be ok with tags.しかし、これは大きな話題知っGoogleのようにタグは大丈夫です。 I’ve been adding tons on my wordpress.com blog and haven’t seen any problems.私も追加してwordpress.comトンのブログとは見ていないすべての問題が発生します。 However, I do like to keep them to a smaller number on my main blogs but I’ve seen others that use them by the truck loads.しかし、私のような小さい数を維持して私のメインのブログでも私が見た他のトラックを使用してロードされる。

    CJs last blog post..最終更新日加協会ブログの投稿.. Sorbs sorbs

Question or Comment??質問やコメントですか?ですか? Spill it Now...今すぐ流出...

ジャンプして喜ぶ以上のコメントを!

We Reward Comments!私たちの報酬のコメントを!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin!私たちdofollowリンク、および取得して最新のブログの投稿ごとに新しいコメントとして署名されてからの" commentluv "差込式! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL!トップへの毎月のcommentersは、すべてのページに上場して、サイドバーのウィジェットは、次のサイトでリンクしてURLを省略して! We would like to reward you for becoming part of our community!私たちの希望になる部分に報奨金を弊社のコミュニティ! Your comment is valuable not only to us, but also all the other readers of this blog!あなたのコメントは貴重な情報だけでなく、他のすべてのだけでなく、このブログの読者の!


Click to add smilies to your post! 顔をしてポストをクリックして追加! == [ ]^ = (= ( (= ( |= )研究= | 8= 0= ) 〜= 00= (= ; ;= ) ]= ; ; ;