Fix 404 errors on Ultimate Tag Warrior 究極のタグ戦士に404エラーを修正

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.私は( 2007年2月)ワードプレス 2.1 で4位、素晴らしい仕事が究極のタグ戦士3.14159265バージョンを使用していくつかの問題やバグを開こうとするとき、 / 404エラーが表示されるタグをしている。 I check and try to make the page /tag or /tag/ show all tags with function of Ultimate Tag Warrior .私はチェックして、ページ/タグまたは/タグ/究極のタグ戦士の機能を持つすべてのタグを表示するにしてください Here is small changed.ここに小さな変更されています。

PHP: PHPは:
  1. function ultimate_tag_templates ( ) { 関数 ultimate_tag_templates ( ) (
  2. if ( $_GET [ "archive" ] == "tag" ) { $ _GET [ "アーカイブ" ] == "タグ" ) (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ;TEMPLATEPATH含まれています。 ' / tag_all.php ' ;
  4. exit ; 出口 ;
  5. } else if ( get_query_var ( "tag" ) != "" ) { 他の人の場合 get_query_var "タグ" ! = " " ) (
  6. ultimate_get_posts ( ) ; ultimate_get_posts ( ) ;
  7. if ( is_feed ( ) ) { 場合 is_feed ( ) ) (
  8. return ; 復帰 ;
  9. }
  10. if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { もし file_existsは TEMPLATEPATH 。 " / tag.php " ) ) (
  11. if ( $_GET [ "feed" ] == '' ) { $ _GET [ "が、 "フィード ] == '' ) (
  12. include ( TEMPLATEPATH . '/tag.php' ) ;TEMPLATEPATH含まれています。 ' / tag.php ' ;
  13. exit ; 出口 ;
  14. }
  15. } else { する else (
  16. //    include(TEMPLATEPATH . '/index.php'); / / ( TEMPLATEPATH含まれています。 ' / index.phpを' ) ;
  17. }
  18. }
  19. }

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この関数はタグの場合のクエリを処理しますが、これって何か処理されるとするタグの場合は空の値を持つリクエストが表示されますWordpressのプロセスは、この、最後は404エラーを与える

I just made some changes to handle when user query with empty tag or open at /tag or /tag/私はいくつかの変更時に空のタグを持つユーザーのクエリまたは/タグまたは/タグで開いて処理するために作ら/

PHP: PHPは:
  1. function ultimate_tag_templates ( ) { 関数 ultimate_tag_templates ( ) (
  2. if ( $_GET [ "archive" ] == "tag" ) { $ _GET [ "アーカイブ" ] == "タグ" ) (
  3. include ( TEMPLATEPATH . '/tag_all.php' ) ;TEMPLATEPATH含まれています。 ' / tag_all.php ' ;
  4. exit ; 出口 ;
  5. } else if ( get_query_var ( "tag" ) != "" ) { 他の人の場合 get_query_var "タグ" ! = " " ) (
  6. ultimate_get_posts ( ) ; ultimate_get_posts ( ) ;
  7. if ( is_feed ( ) ) { 場合 is_feed ( ) ) (
  8. return ; 復帰 ;
  9. }
  10. if ( file_exists ( TEMPLATEPATH . "/tag.php" ) ) { もし file_existsは TEMPLATEPATH 。 " / tag.php " ) ) (
  11. if ( $_GET [ "feed" ] == '' ) { $ _GET [ "が、 "フィード ] == '' ) (
  12. include ( TEMPLATEPATH . '/tag.php' ) ;TEMPLATEPATH含まれています。 ' / tag.php ' ;
  13. exit ; 出口 ;
  14. }
  15. } else { する else (
  16. //    include(TEMPLATEPATH . '/index.php'); / / ( TEMPLATEPATH含まれています。 ' / index.phpを' ) ;
  17. } else { する else (
  18. if ( ( eregi ( '^/tag$' , $_SERVER [ 'REQUEST_URI' ] ) ) || ( ( eregi場合 ' ^ /タグ$ '$ _SERVER [ ' REQUEST_URI ' ] ) ) | |
  19. ( eregi ( "^/tag/$" , $_SERVER [ 'REQUEST_URI' ] ) ) ) { eregi " ^ /タグ/ $ "$ _SERVER [ ' REQUEST_URI ' ] ) ) ) (
  20. include ( TEMPLATEPATH . '/tags.php' ) ;TEMPLATEPATH含まれています。 ' / tags.php ' ;
  21. exit ; 出口 ;
  22. }
  23. }
  24. }

You may need to have file tags.php in your theme directoryあなたのテーマのディレクトリにファイルがtags.phpする必要があります

Here is example of tags.phpここtags.phpの例です。

PHP: PHPは:
  1. <?php get_header ( ) ; ?> < ? phpの get_header ( ) ; ? >
  2. <div class = "primary" > <div クラス = "primary" >
  3. <?php UTW_ShowWeightedTagSetAlphabetical ( "coloredsizedtagcloud" , "" , 0 ) ?> < ? phpの UTW_ShowWeightedTagSetAlphabetical " coloredsizedtagcloud "" "0 ? >
  4. </div> < / divを>
  5. <?php get_sidebar ( ) ; ?> < ? phpの get_sidebar ( ) ; ? >
  6. <?php get_footer ( ) ; ?> < ? phpの get_footer ( ) ; ? >

You also can change function or parameters to display tag in the page as you want.また、必要に応じ、ページ内のタグを表示する関数やパラメータを変更することができます。 Please see all detail here UltimateTagWarrior helpここUltimateTagWarriorに役立つすべての詳細を参照してください


One Response to “Fix 404 errors on Ultimate Tag Warrior” 1つの応答究極のタグ戦士"フィックス404エラー"に

  1. Thai Healthcare and dental care Says: タイの医療と歯の手入れは言う:

    Another Day, Another Post… アナザーデイ、もう一つのポスト...

    [...] While surfing aimlessly today I came across this site: [...]… [...]は、当てもなく、今日私はこのサイトに遭遇したサーフィン: [...] ...

Leave a Replyは、返信のままに

You must be logged in to post a comment.あなたはコメントを投稿するにはログインする必要があります。

Categoriesカテゴリー

Monthly Archives毎月のアーカイブ