Fix 404 errors on Ultimate Tag Warrior Corregir errores en 404 Ultimate Tag Warrior
I uses Ultimate Tag Warrior version 3.14159265 (February 4th, 2007) with WordPress 2.1 , it work great but there have some problem or bug that when you try to open /tag it will show 404 errors. I utiliza Ultimate Tag Warrior versión 3,14159265 (4 de febrero de 2007) con WordPress 2.1, que gran trabajo pero hay algún problema o error que cuando se intenta abrir / etiqueta se mostrará errores 404. I check and try to make the page /tag or /tag/ show all tags with function of Ultimate Tag Warrior . I comprobar y tratar de hacer que la página / o etiqueta / tag / mostrar todas las etiquetas con las funciones de Ultimate Tag Warrior. Here is small changed. Aquí hay una pequeña cambiado.
- function ultimate_tag_templates ( ) { ultimate_tag_templates función () (
- if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "archivo"] == "etiqueta") (
- include ( TEMPLATEPATH . '/tag_all.php' ) ; incluyen (TEMPLATEPATH '. / tag_all.php');
- } else if ( get_query_var ( "tag" ) != "" ) { ) Else if (get_query_var ( "tag")! = "") (
- ultimate_get_posts ( ) ; ultimate_get_posts ();
- if ( is_feed ( ) ) { if (is_feed ()) (
- return ; retorno;
- } )
- if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { if (file_exists (TEMPLATEPATH ". / tag.php")) (
- if ( $_GET [ "feed" ] == '' ) { if ($ _GET [ "feed"] =='') (
- include ( TEMPLATEPATH . '/tag.php' ) ; incluyen (TEMPLATEPATH '. / tag.php');
- } )
- } else { ) Else (
- // include(TEMPLATEPATH . '/index.php'); / / Include (TEMPLATEPATH '. / Index.php');
- } )
- } )
- } )
This function will process when you query for tag but you will see if you request with empty value of tag it won’t process anything and let Wordpress process this and finally it give 404 errors Esta función cuando el proceso de consulta para la etiqueta, pero usted verá si usted solicita vacío con valor de la etiqueta que no proceso de nada y dejar que este proceso de Wordpress y por último, se da 404 errores
I just made some changes to handle when user query with empty tag or open at /tag or /tag/ Acabo de hacer algunos cambios para manejar cuando el usuario consulta con etiqueta vacía abiertas o en / o etiqueta / tag /
- function ultimate_tag_templates ( ) { ultimate_tag_templates función () (
- if ( $_GET [ "archive" ] == "tag" ) { if ($ _GET [ "archivo"] == "etiqueta") (
- include ( TEMPLATEPATH . '/tag_all.php' ) ; incluyen (TEMPLATEPATH '. / tag_all.php');
- } else if ( get_query_var ( "tag" ) != "" ) { ) Else if (get_query_var ( "tag")! = "") (
- ultimate_get_posts ( ) ; ultimate_get_posts ();
- if ( is_feed ( ) ) { if (is_feed ()) (
- return ; retorno;
- } )
- if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { if (file_exists (TEMPLATEPATH ". / tag.php")) (
- if ( $_GET [ "feed" ] == '' ) { if ($ _GET [ "feed"] =='') (
- include ( TEMPLATEPATH . '/tag.php' ) ; incluyen (TEMPLATEPATH '. / tag.php');
- } )
- } else { ) Else (
- // include(TEMPLATEPATH . '/index.php'); / / Include (TEMPLATEPATH '. / Index.php');
- } else { ) Else (
- include ( TEMPLATEPATH . '/tags.php' ) ; incluyen (TEMPLATEPATH '. / tags.php');
- } )
- } )
- } )
You may need to have file tags.php in your theme directory Es posible que tenga que tener el archivo tags.php tema en su directorio
Here is example of tags.php Aquí es ejemplo de tags.php
- <?php get_header ( ) ; ?> <? php get_header ();?>
- <div class = "primary" > <div "primary" class =>
- <?php UTW_ShowWeightedTagSetAlphabetical ( "coloredsizedtagcloud" , "" , 0 ) ?> <? php UTW_ShowWeightedTagSetAlphabetical ( "coloredsizedtagcloud", "", 0)?>
- </div> </ div>
- <?php get_sidebar ( ) ; ?> <? php get_sidebar ();?>
- <?php get_footer ( ) ; ?> <? php get_footer ();?>
You also can change function or parameters to display tag in the page as you want. Usted también puede cambiar de función o parámetros para mostrar la etiqueta en la página como desee. Please see all detail here UltimateTagWarrior help Por favor, ver todos los detalles aquí UltimateTagWarrior ayuda
February 24th, 2007 at 10:35 pm 24 de febrero de 2007 a las 10:35 pm
Another Day, Another Post… Otro día, otro puesto ...
[...] While surfing aimlessly today I came across this site: [...]… [...] Si bien el surf aimlessly hoy me encontré con este sitio: [...] ...