
なるべくPermalinkに余計なものはなくしたいってことで。
▼参考
WordPress : ARTIFACT ―人工事実―
wordpressの続きを読むをクリック時に記事のパーマリンクを取得する方法 | Blog Archive | UNDERMOUNTAIN
なんだけど・・・!!
wp.Vicuna の場合はちょっと違う。
wp.Vicuna は、テーマの中の functions.php 内で変換していた。
なので参考サイトの /wp-includes/template-functions-post.php はいじらずそのまま。
かわりに /wp-content/themes/wp.vicuna/functions.php の 114-121行目の
// [2007-04-03]
// <p><a class="more-link">を<p class="continue"><a>に置き換える (href="hoge#more-**"を、href="hoge#extended"に置換)
$content = preg_replace('/<p(\s.+?=".+?">|>)\s?<a href="(.+?)#more-([0-9]+?)" class="more-link">(.+?)<\/a><\/p>/', '<p class="continue"><a href="\2#extended" title="' . $entry_title . ' 全文を読む" rel="nofollow">\4</a></p>', $content);
// [追記 by ma38su]
// <p>から始まらない場合の<a class="more-link">を<p class="continue"><a>に置き換える
$content = preg_replace('/\s*<a href="(.+?)#more-([0-9]+?)" class="more-link">(.+?)<\/a><\/p>/', "</p>\n\t\t\t\t".'<p class="continue"><a href="\1#extended" title="' . $entry_title . ' 全文を読む" rel="nofollow">\3</a></p>', $content);
の赤文字部分を削除。
/wp-includes/template-functions-post.php をいじっちゃうと class=”continue” がつかないので、 「Continue reading」の左側に矢印アイコンがつかなかったのよね・・・。
[2008-04-01]
WordPress2.5からは別の方法で。
[tr]WordPress Upgrade – 2.3.3 to 2.5





[...] 「Continue reading」のリンク先をパーマリンクに [...]
[...] Continue readingのリンク先をパーマリンクに変更 [...]
[...] 「Continue reading」のリンク先をパーマリンクに [...]