Añadir tags en wordpress 2.3 Add tags in WordPress 2.3
wordpress WordPress 2 de Octubre del 2007 October 2, 2007
Al igual que la gran mayoría, he actualizado a wordpress 2.3 y me he encontrado con el primer problema que avisaban, LAS ETIQUETAS . Like the vast majority, I upgraded to 2.3 wordpress and I found the first problem that notice, the labels.
La mayoría de los temas que usábamos en nuestras plantillas de wordpress anteriores a la nueva versión 2.3 no son compatibles, con lo que hay que actulizar la plantilla, o conseguir otra que si esté actualizada. Most of the items used in our templates wordpress prior to the new version 2.3 are not compatible with what we have to actulizar staffing, or get another if it is up to date. Pero como todos tenemos ya muy configurada y muy preparada nuestra página, no apetece empezar de cero con un diseño nuevo, y para esas personas, va dirigido esta entrada. But as everyone has already set very well prepared and our website, did not want to start from scratch with a new design, and for those people, is directed this post. Voy a explicar brevemente como podemos actualizar nuestro tema con wodpress 2.3 para así añadir los nuevos tags. Let me briefly explain how we can upgrade our theme with wodpress 2.3 to add new tags as well.
Antes de nada decir, que no todos los temas son iguales, pero la línea en donde meter el nuevo código, creo que si lo son. Before you say anything, that not all subjects are equal, but the line where they put the new code, I believe that if you are.
Para empezar lo que he hecho ha sido, ir a presentación, editar plantilla, y allí lo primero que he editado ha sido en single.php To begin with what I have done is, go to presentation, edited Template, and there the first thing he has been edited in single.php
<div class=”postinfo”> <div class="postinfo">
<!–<img src=”<?php //bloginfo(’template_url’) ?>/images/tag.gif” width=”16px” height=”16px” alt=”Tags” /> <?php ?><br />–> <! - <Img src = "<? Php / / bloginfo ( 'template_url')> / images / tag.gif" width = "16px" height = "16px" alt = "Tags" /> <? Php?> <br /> ->
<img src=”<?php bloginfo(’template_url’) ?>/images/user.gif” width=”16px” height=”16px” alt=”Author” /> <?php the_author_posts_link(); ?> <img src = "<? php bloginfo ( 'template_url')> / images / user.gif" width = "16px" height = "16px" alt = "Author" /> <? php the_author_posts_link ();>
<img src=”<?php bloginfo(’template_url’) ?>/images/commentrss.gif” width=”16px” height=”16px” alt=”Comment RSS” /> <a href=”<?php echo comments_rss(); ?>” rel=”nofollow”>Comentarios RSS</a> <?php edit_post_link(’Editar’, ‘ | ‘, ‘ | ‘); ?> <p><?php the_tags(); ?></p> <img src = "<? php bloginfo ( 'template_url')> / images / commentrss.gif" width = "16px" height = "16px" alt = "Comment RSS" /> <a href = "<? php echo comments_rss ();> "rel =" nofollow "> Comments RSS </ a> <? php edit_post_link ( 'Edit', '|', '|');> <p> <? php the_tags ();? > </ p>
</div> </ DIV>
Lo que veis en negrita ha sido lo que he tenido que añadir. What you see in bold has been what I had to add. Fijaros siempre, que el código se suele meter en el loop de “postinfo”. Notice provided that the code is often put in the loop "Postinfo."
El siguiente que he abierto ha sido index.php y he hecho exactamente lo mismo que antes. The next thing he has been open index.php and I have done exactly the same as before.
También podeis añadir en search.php (para que al buscar aparezcan los tags en las entradas encontradas), en page.php y en archive.php. You can also add in search.php (to look at the tags appear at the entrances found), and page.php in archive.php. Todas en la misma línea que la primera. All along the same lines as the first.
El primero sirve para que al abrir la página principal siempre aparezcan los tags y el segundo sirve para que una vez abramos una entrada, estos tags sigan apareciendo. The first serves so that when you open the homepage always appear tags and the second serves to open up once a post, these tags still appear.
Esta guía ha sido realizada para gente que ha tenido el mismo problema que yo, y es el no estar familiarizado del todo con el código que usan los temas de wordpress, y que necesitan una forma visual rápida y fácil para colocar correctamente el código. This guide has been done to people who have had the same problem that I, and is not entirely familiar with the code using the themes of wordpress, and who need a visual form quick and easy to place the code correctly. Espero que sea de utilidad para todo ustedes. I hope it is useful to you all.
Por ahora esto ha sido todo lo que he conseguido, y lo podreis comprobar YA en esta página. So far this has been everything I have achieved, and what you will see on this page. Cualquier error que podais encontrar, comunicádmelo para que me encargue de revisar el código y lo actualice correctamente. Any error that podais find comunicádmelo for me responsible for reviewing the code and update it correctly.
Las ayudas imprescindibles con las que he conseguido hacer todo esto han sido, The essential aid with which he managed to do all this have been, galder Galder y and codex.wordpress
Anotaciones Relacionadas: Related note:
- Renombrar etiquetas en la nueva versión 2.3 de wordpress Rename labels in the new version 2.3 of wordpress
- Genkitheme (fixed width) en castellano adaptado a los tags de wordpress 2.3 Genkitheme (fixed width) in Castilian adapted to the tags of 2.3 wordpress
- Ya ha salido la versión 2.5 de Wordpress He has already left the 2.5 version Wordpress
- Emoticonos para tus comentarios con Wordpress Emoticons for your comments with Wordpress
- Cambio de diseño. Change design. WP Theme: GenkiTheme (Fixed Width) WP Theme: GenkiTheme (Fixed Width)




















2 Octubre 2007 a las 10:48:14
Muchas gracias por el consejo y el codigo, copiar y pegar, verdad????
Saludos desde http://mamarrachi.wordpress.com hoy desde Bilbao…
2 Octubre 2007 a las 11:48:08
Efectivamente, el código que aparece en negrita se copia y pega justo después de este código < ?php edit_post_link(’Editar’, ‘ | ‘, ‘ | ‘); ?> y en principio por lo que puedes ver en mi página, funciona.