タグとサイトマップのプラグインを更新
投稿時に二つもタグ設定があったりすると気持ち悪いし、
後々のことを考えてUltimate Tag WarriorをからSimple-Tagsを使うことにした。
Simple-TagsはWordPress2.3の標準タグ機能を拡張してくれるというもの
設定が豊富で機能も多くていい。
Related Posts機能もあるので今まで使ってきたプラグインを削減できた。
もうひとつはSitemapプラグインである
Sitemap Generator Plugin for Wordpressを更新
標準で多言語に対応(もちろん日本語も)してるので使いやすい。
そのままじゃなぜかページが機能しなかったので少しいじって使えるようにした。
変更点
726行目
$output1 .= ' : <a href="' . $the_url . ($current_page - 1) . '/">Previous Page</a>';
を
$output1 .= ' : <a href="' . $the_url . 'page/' . ($current_page - 1) . '/">Previous Page</a>';
730行目
$output1 .= ' : <a href="' . $the_url . ($current_page + 1) . '/">Next Page</a>';
を
$output1 .= ' : <a href="' . $the_url . 'page/' . ($current_page + 1) . '/">Next Page</a>';
743行目
$output1 .= '<a href="' . $the_url . $i . '/">' . $i . '</a> ';
を
$output1 .= '<a href="' . $the_url . 'page/' . $i . '/">' . $i . '</a> ';
798行目
$output1 = str_replace($the_url . '1/', $the_url, $output1);
を
$output1 = str_replace($the_url . 'page/1/', $the_url, $output1);
769,773,786,800,1067,1068,1232,1244行目に含む
pg
を
paged
記事の情報
- 作成日
- 2007年10月29日 月曜日 22:43:59
- 更新日
- 2007年10月29日 月曜日 22:43:59
- この記事のURL
- http://hrlk.com/2007/10/29/simple-tags_dd-sitemap-gen/
- QRcode

- Trackback URL
※ 本文にhrlk.comへのリンクがない場合は登録されません。- この記事のコメントRSS
- http://hrlk.com/2007/10/29/simple-tags_dd-sitemap-gen/feed/
ナビゲーション
- タグ
- plugin, Sitemap, tag, update, WordPress
- カテゴリ
- PHP
- 前の記事
- WordPress 2.3.1にアップデート
- 次の記事
- 何か月ぶりの記事だろ?
- 関連する記事
[…] ハンターリンクさんの記事を参考にして […]