Host Unlimited Web Sites for Only $10 per Month! Host Ilimitado Sitios Web por sólo $ 10 al mes!
Powered by MaxBlogPress Powered by MaxBlogPress

Hack Wordpress # 19: Hacking Páginas de etiquetas | JTPRATT errores del Blogging
JTPratt errores de los blogs





Home Inicio » Wordpress Hack #19: Hacking Tag Pages »Wordpress Hack # 19: Hacking Páginas de etiquetas



Posted in: Publicado en:

blog-configuración de la categoría de imagenla categoría de blogs imagenBlog de errores-la categoría de imagenwordpress categoría imagenwordpress-seo la categoría de imagen
255 views 255 visitas


Please note: This page was originally written in English. Por favor nota: 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.


This unique Wordpress hack will allow you to index tag pages you create without having to create template files for each and every one. Esta singular Wordpress hack te permitirá índice etiqueta de crear páginas sin tener que crear archivos de plantilla para todos y cada uno.

This post is part of Este puesto es parte de 30 Wordpress hacks in 30 days 30 Wordpress hacks en 30 días .

Back in Ya en Wordpress Hack #15: Hacking Wordpress Tags Hack Wordpress # 15: Hacking Wordpress Tags I described how to add “tag support” to your Wordpress theme files, and how to add a “tag cloud” like the one I use on this blog in the bottom of the left sidebar. I describe cómo agregar "etiqueta de apoyo" a su tema de los archivos de Wordpress, y de cómo agregar una "nube de etiquetas", como el que yo uso en este blog en la parte inferior de la barra lateral izquierda. When you “tag” pages you are actually creating additional pages in your blog - that can get indexed by search engines. Cuando "tag" las páginas que son en realidad la creación de páginas adicionales en su blog - que puede obtener un índice por los motores de búsqueda.

For example, let’s say that I create a new post about an iPod. Por ejemplo, digamos que crear un nuevo post acerca de un iPod. I put the post in the “gadget” category, and tag it “iPod” and “mp3 player”. He puesto el post en el "gadget" categoría, etiqueta y que "iPod" y "reproductor mp3". Within the Wordpress paradigm many things happen… Dentro del paradigma Wordpress suceder muchas cosas ...

  1. A new post page is created based on your single.php theme file using the post title as permalink Una nueva página se ha creado sobre la base de su tema single.php archivo utilizando el puesto como título Permalink
  2. The post is added to the top of your blog home (usually your index.php home, unless you changed it - like I did) El puesto se añadirá a la parte superior de su blog de origen (generalmente index.php su casa, a menos que usted se ha cambiado - como lo hice)
  3. The post is added to the appropriate archive pages for day, month, year, etc. El puesto se añadirá a las páginas de archivo para el día, mes, año, etc
  4. The post is added to all “category” pages you assigned it to El puesto se añadirá a todos los "categoría" páginas que ha asignado a
  5. The post is added to all “tag” pages you added it to El puesto se añadirá a todos los "tag" las páginas que se añade a

If you read Si se lee Wordpress Hack #18: Wordpress Template Files Hack Wordpress # 18: Archivos de plantilla de Wordpress , you already know that you can create custom “tag” and “category” pages, so when the old google crawler comes a-knockin’ it will find original content and not penalize your blog in search rankings. , Usted ya sabe que puede crear costumbre "etiqueta" y "categoría" páginas, así que cuando el viejo rastreador de Google viene a-knockin 'que se encuentra contenido original y no penalizar su blog en los rankings de búsqueda. The problem normally is - if you’re a prolific blogger, you (like many of us) may have a few dozen categories, and hundreds (if not thousands) of tag pages. El problema normalmente es - si usted es un prolífico blogger, usted (como muchos de nosotros) puede tener unas pocas docenas de categorías, y cientos (si no miles) de la etiqueta páginas.

When you categorize a post, you can find it within your blog at: Al clasificar un puesto, usted lo puede encontrar en su blog en:
www.site.com/category/cat-name www.site.com / categoría / nombre de gato

When you tag a post you can find it within your blog at: Cuando se etiqueta un puesto usted puede encontrar dentro de su blog en:
www.site.com/tag/tag-name www.site.com / tag / tag-nombre

To create a custom page for any category or tag page, all you have to do is use your index.php or single.php to create a new Wordpress theme file. Para crear una página personalizada para cualquier categoría o etiqueta de la página, todo lo que tienes que hacer es usar tu index.php o single.php para crear un nuevo archivo de Wordpress tema. Open either index.php or single.php in a text editor and “save as” either: Abrir bien single.php index.php o en un editor de texto y "guardar como" o bien:

category-id.php (for category pages) id.php categoría (para la categoría páginas)
or o
tag-slug.php (for tag pages) slug.php-etiqueta (etiqueta de páginas)

This means if my “gadget” category was “17″ then my theme file for it would be “category-18.php”. Esto significa que si mi "gadget" es la categoría "17" y luego mi tema para él sería "categoría 18.php". If my tag was “mp3 player”, then my theme file for it would be “tag-mp3-player.php”. Si mi etiqueta es "MP3 Player", y después mi tema para él sería "tag-mp3-player.php". View my Ver mi Wordpress Template Files Wordpress archivos de plantilla hack page for pics and a better description. hack página de fotos y una mejor descripción.

So - What “I” did was create category theme files for every category I had. Por lo tanto - ¿Qué "I" hizo fue crear archivos de la categoría tema para cada categoría he tenido. THEN, I created a single “tag.php” file that would display for every tag page I have. A continuación, he creado un único "tag.php" archivo que mostrar para cada etiqueta de la página que tengo. What I didn’t mention up until now was that if you create a “category.php” and “tag.php” file and put them in your theme directory that these will be used for ANY category or tag pages that don’t already have one for that slug or ID. Lo que no se menciona hasta ahora es que si crea un "category.php" y "tag.php" y poner el archivo en su directorio tema que estos se utilizarán para cualquier categoría o etiqueta de las páginas que ya no tener para que una babosa o el ID.

Every blog is of course a different topic (or niche), but this is what I did for tag pages on one blog I own. Cada blog es, por supuesto, un tema diferente (o de nicho), pero esto es lo que hice para la etiqueta de las páginas de un blog propio yo. I used the tag title to create a different description lead-in sentence to get each tag page listed in the search engines. He utilizado la etiqueta de título para crear una descripción diferente de plomo en la oración para obtener la etiqueta de cada página que figuran en los motores de búsqueda. Right before “the loop” I placed this bit of code to do that: Justo antes de "el bucle" Yo colocado este trozo de código para hacerlo:

 <p><?php single_tag_title('This page is about '); ?>! My blog is about geeky tech stuff, technology, Linux, gadgets, web tools, and more! <?php single_tag_title('If you like '); ?>, the posts below should be right up your alley!! 

That code gets the “tag_title” and uses it like this (for the example “mp3 player”): Que recibe el código "tag_title" y lo utiliza como este (por el ejemplo "mp3 player"):

“This page is about MP3 Players! "Esta página es sobre Reproductores MP3! My blog is about geeky tech stuff, technology, Linux, gadgets, web tools, and more! Mi blog es sobre cosas geek tecnología, la tecnología, Linux, gadgets, herramientas web, y mucho más! If you like MP3 Players, the posts below should be right up your alley!!” Si te gusta Reproductores de MP3, por debajo de los puestos debe ser hasta su callejón! "

I did this a month ago on one of my blogs, and all the tag pages are indexing nicely! Hice esto hace un mes en uno de mis blogs, y todos la etiqueta son la indexación de páginas muy bien! I’m sure you could hack this up even further - but this simple little solution fixed my tag page indexing problem quickly. Estoy seguro de que podría hack esto aún más - pero esta sencilla solución poco mi etiqueta fija la indexación de la página problema rápidamente.


Tags: Etiquetas: , , , ,

11 Responses to “Wordpress Hack #19: Hacking Tag Pages” 11 Respuestas a "Hack Wordpress # 19: Hacking Páginas de etiquetas"

  1. Erika Erika Has the following to say... Tiene las siguientes decir ...

    Yikes… I think you might’ve missed a code tag in your post? Yikes ... Creo que usted puede ser que haya perdido un código de etiqueta en su puesto?

    Erikas last blog post.. Erikas último blog .. Miami Web Design Miami Diseño Web

  2. admin admin Has the following to say... Tiene las siguientes decir ...

    fixed now - thanks! fija ahora - ¡Gracias! =)]

  3. Anthonyq Anthonyq Has the following to say... Tiene las siguientes decir ...

    Another great tip which i’m implementing right now! Otro gran consejo que yo estoy de ejecución ahora mismo!

    Question thou : how do you trunticate your listings in the Tag Page order to avoid duplicate content? Pregunta tú: ¿cómo trunticate anuncios en la página de etiquetas para evitar contenido duplicado?

  4. Mark - The Niche Store Builder Marca - el nicho constructor de la tienda Has the following to say... Tiene las siguientes decir ...

    Hey man - Glad to see your back!! Hey man - Me alegro de ver tu espalda! Either I missed a bunch of posts, or you took a vacation! O me perdí un montón de puestos de trabajo, o si tomó unas vacaciones!

    Mark Marca

    Mark - The Niche Store Builders last blog post.. Marcos - La tienda de nicho Constructores último blog .. Creating your Own little WordPress Playground Cómo crear sus propios juegos poco WordPress

  5. jj-momscashblog jj-momscashblog Has the following to say... Tiene las siguientes decir ...

    Hi JT, First time here and I’ve enjoyed your posts, full of lots of info. Hola JT, por primera vez aquí y he disfrutado de sus puestos, el pleno de los lotes de información. will have to come back and read a couple of others that I thought looked interesting. tendrá que volver y leer un par de los demás pensé que parecía interesante. thanks so much . Muchas gracias. I also wanted to let you know your Entrecard will be on my blog tomorrow, so many thanks for that. También quería poder comunicarle que su Entrecard será en mi blog mañana, de modo que muchas gracias por ello. =

  6. admin admin Has the following to say... Tiene las siguientes decir ...

    @jj-momscashblog - thanks for the kind words, glad to have you here! @ jj-momscashblog - gracias por las amables palabras, encantados de tenerlos aquí! =)]

  7. admin admin Has the following to say... Tiene las siguientes decir ...

    @Mark - thanks for the comment! @ Marcos - gracias por el comentario! No - I didn’t post at all last week and only once the week before (too busy!). No - no he puesto en todos la semana pasada y sólo una vez antes de la semana (muy ocupado).

  8. admin admin Has the following to say... Tiene las siguientes decir ...

    @Anthonyq - I don’t truncate the listings on my tag page (other than maybe excerpt) to avoid duplicate content, it’s just not any issue (in google) anymore. @ Anthonyq - Yo no truncar los anuncios en mi página de la etiqueta (excepto quizás extracto) para evitar contenido duplicado, es no sólo cualquier cuestión (en google) más.

  9. Anthonyq Anthonyq Has the following to say... Tiene las siguientes decir ...

    Ah ok. Ah ok. I was looking on your blog here, i noticed that the listings were summaries. Estaba buscando en su blog aquí, me di cuenta de que los anuncios eran resúmenes. Wondering how you do that? ¿Está pensando cómo hacer eso?

  10. Dennis Edell Dennis Edell Has the following to say... Tiene las siguientes decir ...

    Love these posts. Amor esos puestos. I’m saving them all for when I may be confident enough to hack without destroying. Estoy ahorrando a todos ellos por cuando puede ser la suficiente confianza para piratear sin destruir. :-)

    Dennis Edells last blog post.. Dennis Edells último blog .. Grab Your Offline Marketing Tools Here Too! Apoderarse de su herramientas de marketing fuera de línea también aquí!

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

    @Dennis - I would read @ Dennis - Yo diría showing only a post excerpt in Wordpress mostrando sólo un extracto puesto en Wordpress .

Question or Comment?? Pregunta o comentario? Spill it Now... Derrame Ahora ...

Saltos de alegría en 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 un byline el marco 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! Comienzo de la página comentaristas para cada mes se muestran en cada página de este sitio web en un widget lateral vinculado de nuevo a su URL! We would like to reward you for becoming part of our community! Nos gustaría recompensar a usted para ser parte de nuestra comunidad! Your comment is valuable not only to us, but also all the other readers of this blog! Su 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= (=;;=)]=;;;