Unlimited $1.99 domain names - We use goDaddy 무제한 $ 1.99 도메인 이름 - 우리가 사용 goDaddy
Powered by MaxBlogPress 문서 Powered by MaxBlogPress

WordPress의 해킹 # 15 : 해킹 Wordpress 태그 | JTPRATT의 블로깅 실수
JTPratt의 블로깅 실수





Home » Wordpress Hack #15: Hacking Wordpress Tags »Wordpress 해킹 # 15 : 해킹 Wordpress 태그



Posted in: 에 게시됨 :

블로그 - 설치 카테고리 이미지WordPress의 카테고리 이미지
1,096 views 1096 조회


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 이 날 # 15 중 하나입니다 30 Wordpress Hacks in 30 Days 30 Wordpress Hacks는 30 일 안에 .

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. 그러나, 블로그 - 태그 오바마, 존 캔디, AC / DC는, HTML은있을 것이다. 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; ?> 

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의 Codex 국제 태그 클라우드 페이지 .

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 파일을 하나의 게시물 ()에 대한 게시물 아래에 사용되는 일부 코드를 추가하여 태그를 추가하는 것입니다. 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>'); ?> 

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. 거기에 하나 archive.php 경우 기본적으로 사용됩니다 아니다 기본 Wordpress 만나 "tag.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. The Wordpress Codex Tag Page WordPress의 Codex 국제 태그 페이지 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의 SEO 보여 줄께. As always, if you have something to add to make this post better, or a question - comment now! 언제나처럼 좋은 경우, 또는 질문 - 지금이 게시물에 댓글을 추가할 수 있도록 뭔가있어!


Tags: 태그 : , , , , ,

11 Responses to “Wordpress Hack #15: Hacking Wordpress Tags” 11 응답을 "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. 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. 난 큰 주제들이 모여 있지만, 구글 태그로 확인 될 것으로 보인다. I’ve been adding tons on my wordpress.com blog and haven’t seen any problems. 내 wordpress.com 블로그에와 t의 추가 봤는데 아무 문제가 보지 못했어요. 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.. 지난 CJs 블로그 게시물을 .. Sorbs

  4. CJ CJ는 Has the following to say... 다음 말하기를 ...

    Update: 업데이트 :

    Just spent the past few days studying up on tags, technorati, and other blog search engines. 그냥 지난 몇 일간의 태그, 테크노에 올라 공부하고, 다른 블로그 검색 엔진을 보냈다.

    First, we all should be using the rel-”tag” (note that - should be an 첫째, 우리 모두를 사용해야 REL - "태그"(메모가 -되어야 = sign) on all our links that have key words. 기호)가 핵심 단어를 가지고 우리의 모든 링크에있습니다. Many of those links you may not want to have a tag for your visitors to follow. 그 많은 링크를 따라 귀하의 방문자에 대한 태그를 갖고 싶어하지 않을 수도있습니다. This works well with blog search engines, also. 이것은 물론 블로그와 검색 엔진도 작동합니다. This allows your keywords to be tagged without needing to put a tag at the bottom of your post 이 키워드가 귀하의 게시물의 하단에 태그를 넣어 필요없이 태그가 될 수있습니다

    Remember that technorati uses + while wordpress uses - between words. 기억 +하면서 워드를 사용하는 단어를 사용하여 그 테크노 - 사이. Technorati also uses the - for tags but they aren’t the primary tags, thus a multi word tag on technorati should be worda+wordb+wordc while that will be worda-wordb-wordc on wordpress. Technorati는 또한 태그 -하지만 그들은 기본 태그, 따라서 테크노에 worda + wordb + worda 될 wordc 그 동안 여러 단어를 태그해야되지 않습니다 - wordb - 워드에 wordc를 사용합니다.

    Here’s the problem. 여기에 문제가있습니다.
    You cannot link within a post to your technorati tag (worda+wordb+wordc) because wordpress will remove the + and you get wordawordbwordc 당신 Technorati는 태그로 게시물 (worda + wordb + wordc) 때문에 워드 + 및 wordawordbwordc 얻을 제거됩니다 이내에 연결할 수없습니다

    Not what you really want. 아니 당신이 정말로 원하는 건.

    Let me see if I can make this clearer. 이 명확하게 만들 수있다면 어디 보자.
    You may want to hyperlink keywords within the post but not leave your site and have no real post to link to, thus you would love to link to that tag, right? 당신은 게시물 이내지만 키워드에 하이퍼 링크를 귀하의 사이트를 떠나지 않고도 찾을수없는 게시물로 링크가, 그래서 당신은 그 태그를 마우스 오른쪽 링크를 사랑하는 것이라고 할 수있습니다? Well, to have that tag be equal to technorati you want to us a “+” between words, but you can’t do that in a wordpress link. 글쎄, 그건 당신이 우리에게 원하는 태그 Technorati는 단어 "+"사이에 평등해야한다,하지만 당신은 할 수 없어 그 WordPress의 링크에있습니다. Wordpress will remove the +. WordPress의 제거됩니다 +.
    The only way to link keywords to a tag page in wordpress is to seperate words with a - 태그 페이지로 워드에 키워드를 링크하는 유일한 방법은 별도의 단어를 가진 -
    That’s the same way wordpress sees your tags, categories, and everything else. 그 WordPress의 태그, 카테고리를 보는 것과 같은 방법으로, 그리고 다른 모든 것들. WordPress always uses - while technorati used a + 워드는 항상 사용합니다 - 동안 사용한 테크노 +

    The only real way to stay on your site and use the + is to link the keywords to a search function (hyperlink like normal but end with index.php?s=wordsa+wordb” rel-”tag”) This will then cause a search function on your site for that tagged words in the hyperlink 귀하의 사이트에 체류하고있는 + 검색 기능을 정상으로 끝나야하지만 index.php처럼 (하이퍼 링크가 사용하는 키워드만이 진정한 방법은? = wordsa + wordb "REL -"태그 ")이 다음의 원인이된다 하이퍼 링크에 태그가있는 단어에 대한 귀하의 사이트에 검색 기능을

    This is a long way to say, on wordpress you will never have a tag “page” that is equal to a tchnorati tag because wordpress doesn’t allow the use of + as a separator between words. 이 말은 먼 길을 워드의 사용을 허용하지 않기 때문에 그 tchnorati 태그 같다 "페이지"태그가 필요하지 않습니다 워드에있습니다 + 단어 사이를 구분 기호로했다.

    CJs last blog post.. 지난 CJs 블로그 게시물을 .. Akismet Spam Akismet 스팸

  5. Make Online Money 온라인으로 돈을 만들어 Has the following to say... 다음 말하기를 ...

    Nicely done. 잘했어. Most of my blog ‘marketing’ is done through social bookmarking. 내 블로그 '의 대부분은 마케팅'소셜 북마크를 통해 이루어집니다. (I use socialmarker.com to broadcast to multiple bookmarking sites at once.) I really like your ideas here. (전에서 여러 개의 북마크 사이트에 한번 방송을 socialmarker.com을 사용합니다.) 여러분의 아이디어는 여기가 정말 맘에 듭니다.

    Make Online Moneys last blog post.. 온라인 쩐의하게 마지막 블로그 게시물을 .. Profit from Poo 푸우에서 이익

  6. Trying Hard 열심히 노력 Has the following to say... 다음 말하기를 ...

    I’ll consider adding something like the tag cloud, but I really don’t like the look of it. 난, 태그 구름처럼 뭔가를 추가했지만 그것의 모양을 고려 정말 좋아하지 않아요. I’d prefer it to show the more popular tags increasingly darker and darker, but the same font. 난 그게 더 인기있는 태그를 점점 더 어둡게하고 어둡고,하지만 같은 글꼴을 보여주고 싶어요. Any chance you’ve seen one like this I could use? 당신이 좀 쓸 수 있을까요처럼 하나도 본 적없는 기회?

    Trying Hards last blog post.. 블로그 게시물 지난 삼 부스러기 노력 .. Preparing Safety Posts 준비 안전 게시물

  7. Chris Hunt 크리스 헌트 Has the following to say... 다음 말하기를 ...

    Trying Hard - try installing the “Simple Tags” plugin, it lets you customise the appearance of tag clouds and do all sorts of other clever things with tags. 열심히 노력 - 구름의 모양을 사용자 정의 태그와 태그가 함께 할 수있는 모든 종류의 다른 똑똑한 것들 "플러그인,"간단한 태그를 설치하십시오.

  8. Trying Hard 열심히 노력 Has the following to say... 다음 말하기를 ...

    I’ll check that out. 내가 확인해 보겠습니다. Thanks. 감사합니다.

    Trying Hards last blog post.. 블로그 게시물 지난 삼 부스러기 노력 .. Multiple Ideas Mashed Into One Topic 여러 아이디어를 하나의 주제에 으깬

  9. Blog for Beginners 초보자를위한 블로그 Has the following to say... 다음 말하기를 ...

    I am yet to see the benefit of using tag cloud. 난 아직 태그 구름 사용의 혜택을 볼 수있다. Maybe I’m wrong but for now I don’t like to clutter my sidebar with it. 하지만 지금은 아마 내가 잘못이야, 내가 그걸로 내 사이드바 난장판을 좋아하지 않아요.

    Blog for Beginnerss last blog post.. 블로그 Beginnerss 마지막 블로그 게시물을 .. Yet Another 8 CSS Tips For Your Blog 아직 블로그를위한 또 다른 8 CSS를위한 팁

  10. Craig Mullins 크레이그 멀린스 Has the following to say... 다음 말하기를 ...

    Any reason why my web site would not be creating the tags on posts? 어떠한 이유 내 웹 사이트의 게시물에 태그를 작성해야하지 않겠어?

    I added this as you suggested (it’s taken out now): 나는 (지금은) 촬영이로 제시했다 :

    <?php the_tags(’Tags: ‘, ‘, ‘, ”); ?> <? PHP는 the_tags ( '태그 :', ',', ");?>

    I also tried adding the technorati tags plugin that’s still in there. 내가 아직 거기에 플러그인을 추가하는 태그가 테크노도 보았습니다. If you look at the source you will see this: 만약 여러분이 소스에서 보면이 나타납니다 :

    So for some reason the template isn’t allowing the tags to go thru. 그래서 템플릿을 어떤 이유에 대한 태그를 통해 이동하는 것을 허용하지 않습니다. If I use another template the tags show up… 만약 내가 다른 템플릿을 사용하여 태그를 표시 ...

    Craig Mullinss last blog post.. 크레이그는 지난 Mullinss 블로그 게시물을 .. First Things First in Choosing Your Next Home 먼저 귀하의 다음 홈 선택에 먼저 할 일은

  11. admin 관리자 Has the following to say... 다음 말하기를 ...

    @Craig Mullins - If you use another theme and the tags show up then your theme is mis-coded. @ 크레이그 멀린스 - 만약 당신이 다른 테마와 태그를 사용하여 테마를 누른 잘못입니다 - 코딩된 보여. Search the Wordpress forum for the answer, it probably doesn’t have the normal Wordpress necessary calls - like the one in the footer most likely. 답변을 위해 검색 Wordpress 포럼, 아마 정상적인 Wordpress 필요한 전화가되지 않습니다 - 바닥글에있는 한 것처럼 가장 높습니다.

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! 매달 최고의 코멘트 사이드바 위젯에이 사이트의 모든 페이지의 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! 게시물에 웃음을 클릭하여 추가합니다! == []^ = (= ((= (|=) r에= | 8= 0=) ~= 00= (=;;=)]=;;;