Unlimited $1.99 domain names - We use goDaddy Unlimited $ 1,99 nombres de dominio - Utilizamos GoDaddy
Powered by MaxBlogPress Powered by MaxBlogPress

Wordpress Hack # 15: Hacking Wordpress Etiquetas | JTPRATT del Blogging Errores
JTPratt errores del Blogging





Home Inicio » Wordpress Hack #15: Hacking Wordpress Tags »Wordpress Hack # 15: Hacking Wordpress etiquetas



Posted in: Publicado en:

blog-categoría de configuración de imagenWordPress categoría imagen
1,067 views 1.067 visitas


Please note: This page was originally written in English. Atención: Esta página fue originalmente escrito en Inglés.

The original post can be viewed El post original se puede ver here aquí .

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! Hoy vamos a aprender a añadir la etiqueta de Apoyo de hacking Wordpress su tema!

This is day #15 of Este es el día de # 15 30 Wordpress Hacks in 30 Days 30 de Wordpress Hacks en 30 Días .

If you’re using Wordpress 2.3x or 2.5 or higher you have the ability to use “tags”. Si utilizas Wordpress 2.3x o 2,5 o superior tiene la capacidad de utilizar "tags". If you use social media at all, you should already know what a tag is. Si utiliza los medios de comunicación social en absoluto, usted ya debe saber qué es una etiqueta. Basically it’s just a piece of metadata, a “descriptor” of some kind. Básicamente es sólo un trozo de metadatos, un "descriptor" de algún tipo. When you blog, it’s also another way to pigeonhole and file your content. Cuando su blog, es también otra manera de pigeonhole y presentar su contenido. 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. La aplicación de etiquetas en Wordpress es muy importante, ya que mantienen a la gente de "uso de categorías como las etiquetas" como muchos de nosotros hemos realizado a lo largo de los años. 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. Hay docenas de plugins disponibles para añadir etiquetas a su blog Wordpress, pero ahora todo lo que la funcionalidad está disponible sin utilizar ningún plugins en absoluto.

Think of categories as high level descriptions. Piense en categorías como las descripciones de alto nivel. What do you like to blog about? ¿Qué le gusta al blog? Movies, Music, Politics, and Web Design. Películas, Música, Actualidad, y Diseño Web. Those are categories. Estas son las categorías. However, when you blog - the tags would be Obama, John Candy, AC/DC, and HTML. Sin embargo, cuando usted blog - las etiquetas se Obama, John Candy, AC / DC, y HTML. Get it? Obtener? All you have to do is enter description tags when you blog, along with a category. Todo lo que tienes que hacer es entrar en la descripción etiquetas cuando su blog, junto con una categoría. Now you’re probably wondering, what do I do with that information? Ahora probablemente está preguntando, ¿qué debo hacer con esa información?

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. Dependiendo de la edad de su tema es que pueden o no tener "etiqueta", lo que significa que podría no ser codificados para hacer nada en absoluto con las etiquetas que usted va a introducir. The first thing you can do is to add a (now famous) “tag cloud” in your side bar like I did, with this code: La primera cosa que podemos hacer es añadir un (ahora famosa) "nube de etiquetas" en su barra al lado como yo lo hice, con este código:

 <?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 if (function_exists ( 'wp_tag_cloud')):?> <li> <h2> Popular Tags </ h2> <ul> <? php wp_tag_cloud ( '= 8 más pequeño y más grande = 22');?> </ ul> </ li> <? php endif;?> 

If you want to know more about how that codes works and how you can modify it, visit the Si quieres saber más sobre la manera en que los códigos de obras y cómo es posible modificarla, visite el Wordpress Codex Tag Cloud Page Wordpress Codex nube de etiquetas página .

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). Otra cosa que puedes hacer es añadir a las etiquetas que utiliza debajo de su puesto de añadir algo de código a su archivo single.php (solo para los puestos). You could do it on your index.php home page as well, but I don’t much see the point in that. Usted podría hacerlo en su página de index.php como así, pero yo no mucho ver el punto en que. 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: Todo lo que tienes que hacer es agregar el siguiente código cerca del final del bucle para mostrar los códigos que se utilizan al final de la intervención:

 <?php the_tags('<p>Tags: ', ', ', '</p>'); ?> <? php the_tags ( '<p> etiquetas:', ',', '</ 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). Así que, ahora que hemos hablado acerca de cómo modificar su tema para añadir los códigos que se utilizan después de una entrada, y la forma de una nube de etiquetas en la columna lateral (sin usar un 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. Haga clic en uno de los enlaces en mi puesto (a una etiqueta) o mi nube de etiquetas y verás (al igual que una página de categoría) que va a una "etiqueta" de la página, o algo así site.com/tag/wordpress- hack.

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 por defecto se buscará la "tag.php" fichero (la mayoría de temas que no tienen), y si no hay ni una sola su archive.php se usará por defecto. You could just leave this as-is, or create your own custom “tag.php” to make your tag pages unique. Usted puede dejar esto como es-, o crear sus propios "tag.php" para hacer su etiqueta páginas únicas. One way to do this would be to add a “tag cloud” to the top of each tag page. Una forma de hacerlo sería añadir una "nube de etiquetas" a la parte superior de cada página etiqueta. The El Wordpress Codex Tag Page Wordpress Codex Etiqueta página has more information on creating a custom tag.php file for your theme. tiene más información sobre la creación de un archivo tag.php personalizado para su tema.

This post was all about “how to add tag support to your Wordpress theme”. Esta entrada fue todo acerca de "cómo añadir etiqueta apoyo a su Wordpress tema". In a future post, I’ll show you what you need to know about tagged pages and Wordpress SEO. En un futuro post, yo te mostraré lo que usted necesita saber acerca de la etiqueta y las páginas de Wordpress SEO. As always, if you have something to add to make this post better, or a question - comment now! Como siempre, si tiene algo que añadir a hacer este post mejor, o una pregunta - comentar ahora!


Tags: Etiquetas: , , , , ,

11 Responses to “Wordpress Hack #15: Hacking Wordpress Tags” 11 Respuestas a "Wordpress Hack # 15: Hacking Wordpress etiquetas"

  1. unique articles única artículos Has the following to say... Tiene los siguientes decir ...

    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. Usted tiene un buen tutorial existe rápida y fácil de seguir, debe convertirlo en un artículo y hacer algunas presentaciones con el artículo que para atraer a más personas a su sitio.

    Really like that and keep up the good work :) De verdad que como y mantener el buen trabajo:)

    unique articless last blog post.. único articless última entrada del blog .. The Art Of Online Writing El arte de la escritura en línea

  2. Erika Erika Has the following to say... Tiene los siguientes decir ...

    LOL I was just looking for this yesterday! LOL yo sólo buscaba ayer! Thanks for the little tidbit! Gracias por el pequeño tidbit!

    Erikas last blog post..1 Erikas última entrada del blog .. 1

  3. CJ CJ Has the following to say... Tiene los siguientes decir ...

    Categories are nice to start your site off. Categorías son agradables para iniciar su sitio fuera. Use the descriptions of the categories to add keyword content like JT talks about and then the tags to get specific. Use las descripciones de las categorías para añadir contenido como palabra clave JT conversaciones y, a continuación, sobre las etiquetas para obtener específicas. I don’t add tags till I have some pages going. Yo no añadir etiquetas hasta tengo algunas páginas adelante. . . looks bad to have one post in ten places. ve mal para tener un puesto en diez lugares.

    I haven’t found a problem with duplicate content using tags. No he encontrado un problema con contenido duplicado mediante etiquetas. I know it’sa big topic but google seems to be ok with tags. Sé que es un gran tema pero google parece estar ok con etiquetas. I’ve been adding tons on my wordpress.com blog and haven’t seen any problems. He estado añadiendo toneladas wordpress.com en mi blog y no han visto ningún problema. 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. Sin embargo, me gusta hacer para mantener a un número menor de mis principales blogs, pero he visto otros que utilizan los camiones de carga.

    CJs last blog post.. CJS última entrada del blog .. Sorbs Sorabos

  4. CJ CJ Has the following to say... Tiene los siguientes decir ...

    Update: Actualizado:

    Just spent the past few days studying up on tags, technorati, and other blog search engines. Sólo pasado los últimos días hasta que estudian en las etiquetas, Technorati, y otros motores de búsqueda de blogs.

    First, we all should be using the rel-”tag” (note that - should be an En primer lugar, todos debemos estar utilizando el rel-"tag" (ten en cuenta que - debe ser un = sign) on all our links that have key words. signo) en todos los vínculos que tienen palabras clave. Many of those links you may not want to have a tag for your visitors to follow. Muchos de esos vínculos es posible que no quiera tener una etiqueta para sus visitantes a seguir. This works well with blog search engines, also. Esto funciona bien con los motores de búsqueda de blogs, también. This allows your keywords to be tagged without needing to put a tag at the bottom of your post Esto permite que sus palabras clave a ser marcados sin necesidad de poner una etiqueta en la parte inferior de su puesto

    Remember that technorati uses + while wordpress uses - between words. Recuerde que Technorati usa +, mientras que utiliza wordpress - entre las palabras. 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 también utiliza el - para etiquetas pero no son la principal etiquetas, por lo tanto, un multi palabra en Technorati etiqueta debe worda + wordb + wordc mientras que se worda-wordb-wordc en wordpress.

    Here’s the problem. Aquí está el problema.
    You cannot link within a post to your technorati tag (worda+wordb+wordc) because wordpress will remove the + and you get wordawordbwordc No se puede vincular dentro de un puesto a su etiqueta de Technorati (worda + wordb + wordc) wordpress porque se eliminará el + y llegar wordawordbwordc

    Not what you really want. ¿No es lo que realmente quieres.

    Let me see if I can make this clearer. Déjeme ver si puedo hacer esto más claro.
    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? Si lo desea, puede hipervínculo palabras clave en el cargo pero no dejar su sitio y no han puesto real de vincular a, por lo que a usted le gusta el vínculo de la etiqueta, ¿no? 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. Pues bien, a tener que etiquetar ser igual al que desea Technorati para nosotros un signo "+" entre las palabras, pero no se puede hacer eso en un vínculo wordpress. Wordpress will remove the +. Wordpress para borrar el signo +.
    The only way to link keywords to a tag page in wordpress is to seperate words with a - La única manera de vincular palabras clave para una etiqueta en la página de wordpress es separar las palabras con un --
    That’s the same way wordpress sees your tags, categories, and everything else. Esa es la misma forma wordpress ve sus etiquetas, categorías, y todo lo demás. WordPress always uses - while technorati used a + WordPress utiliza siempre -, mientras que Technorati utilizado 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 La única forma real de permanecer en su sitio y utilizar el signo + es establecer un vínculo entre las palabras clave a una función de búsqueda (como hipervínculo normal, pero con final index.php? S = wordsa + wordb "rel-" etiqueta ") Esto entonces causar una función de búsqueda en su sitio para que la etiqueta palabras en el hipervínculo

    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. Este es un largo camino para decir, en wordpress nunca tendrá una etiqueta "página" que es igual a una etiqueta tchnorati wordpress porque no está permitido el uso de + como separador entre las palabras.

    CJs last blog post.. CJS última entrada del blog .. Akismet Spam Akismet Spam

  5. Make Online Money Hacer dinero en línea Has the following to say... Tiene los siguientes decir ...

    Nicely done. Muy bien hecho. Most of my blog ‘marketing’ is done through social bookmarking. La mayor parte de mi blog de "comercialización" se realiza a través de social bookmarking. (I use socialmarker.com to broadcast to multiple bookmarking sites at once.) I really like your ideas here. (Yo uso socialmarker.com para emitir un marcador a varios sitios a la vez.) Me gustan mucho sus ideas aquí.

    Make Online Moneys last blog post.. Hacer sumas última línea entrada en el blog .. Profit from Poo Beneficio de Poo

  6. Trying Hard Intentar Hard Has the following to say... Tiene los siguientes decir ...

    I’ll consider adding something like the tag cloud, but I really don’t like the look of it. Voy a añadir algo así como la nube de etiquetas, pero yo realmente no les gusta el aspecto de la misma. I’d prefer it to show the more popular tags increasingly darker and darker, but the same font. Prefiero que muestran el más popular etiquetas cada vez más oscuro y más oscuro, pero la misma fuente. Any chance you’ve seen one like this I could use? Cualquier oportunidad que has visto uno como este me podría utilizar?

    Trying Hards last blog post.. Intentar Hards última entrada del blog .. Preparing Safety Posts Preparación de seguridad puestos

  7. Chris Hunt Chris Hunt Has the following to say... Tiene los siguientes decir ...

    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. Intentar duro - la instalación de "Simple etiquetas" plugin, que te permite personalizar la apariencia de la etiqueta de nubes y hacer toda clase de cosas inteligentes con etiquetas.

  8. Trying Hard Intentar Hard Has the following to say... Tiene los siguientes decir ...

    I’ll check that out. Voy a comprobar que fuera. Thanks. Gracias.

    Trying Hards last blog post.. Intentar Hards última entrada del blog .. Multiple Ideas Mashed Into One Topic Puré de múltiples ideas en un tema

  9. Blog for Beginners Blog para principiantes Has the following to say... Tiene los siguientes decir ...

    I am yet to see the benefit of using tag cloud. Estoy aún a ver el beneficio de utilizar nube de etiquetas. Maybe I’m wrong but for now I don’t like to clutter my sidebar with it. Tal vez estoy equivocado, pero por ahora no me gusta el desorden a mi barra lateral de la misma.

    Blog for Beginnerss last blog post.. Blog para Beginnerss última entrada del blog .. Yet Another 8 CSS Tips For Your Blog Sin embargo, otro 8 CSS Consejos para tu blog

  10. Craig Mullins Craig Mullins Has the following to say... Tiene los siguientes decir ...

    Any reason why my web site would not be creating the tags on posts? Cualquier razón por la cual mi sitio web no sería la creación de las etiquetas de las entradas?

    I added this as you suggested (it’s taken out now): He añadido esto como usted ha sugerido (es sacado ahora):

    <?php the_tags(’Tags: ‘, ‘, ‘, ”); ?> <? php the_tags ( 'etiquetas',', ', ");?>

    I also tried adding the technorati tags plugin that’s still in there. También trató de añadir el plugin Technorati tags que aún en ese país. If you look at the source you will see this: Si nos fijamos en la fuente, verá esto:

    So for some reason the template isn’t allowing the tags to go thru. Así que, por alguna razón, la plantilla no permite que las etiquetas a pasar. If I use another template the tags show up… Si yo uso otra plantilla de las etiquetas se muestran…

    Craig Mullinss last blog post.. Craig Mullinss última entrada del blog .. First Things First in Choosing Your Next Home Lo primero es lo primero en la elección de su próxima casa

  11. admin admin Has the following to say... Tiene los siguientes decir ...

    @Craig Mullins - If you use another theme and the tags show up then your theme is mis-coded. @ Craig Mullins - Si utiliza otro de los temas y las etiquetas se muestran a continuación, su tema es un código de error. 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. Buscar en el foro de Wordpress para la respuesta, probablemente no tiene el normal Wordpress pide necesario - como el de pie de página la más probable.

Question or Comment?? Pregunta o comentario? Spill it Now... Derrames que ahora ...

Saltos de alegría por los comentarios!

We Reward Comments! Nos recompensa comentarios!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Estamos dofollow enlaces, y obtener su última entrada en el blog como una p en virtud de cada nuevo comentario de la "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! Top comentaristas de cada mes se enumeran en todas las páginas de este sitio en una barra lateral widget vinculadas a la URL! We would like to reward you for becoming part of our community! Nos gustaría premiar a usted para formar parte de nuestra comunidad! Your comment is valuable not only to us, but also all the other readers of this blog! Tu comentario es valioso no sólo para nosotros, sino también todos los demás lectores de este blog!


Click to add smilies to your post! Haz clic para añadir emoticones a su puesto! == []^ = (= ((= (|=) r= | 8= 0=) ~= 00= (=;;=)]=;;;