Show-Hide-More で苦しむ

まとめてみましょう。(苦笑) 変更ポイント以下のようになりました。

15行目 変更前
add_action(‘the_content’, ‘the_contentshowhide’,0);

変更後 add_action(‘the_content’, ‘the_contentshowhide’,1);

51,52行目 変更前
function the_contentshowhide($more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {
$content = get_the_contentshowhide($more_link_text, $stripteaser, $more_file);

変更後
function the_contentshowhide($content, $more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {
$content = get_the_contentshowhide($content, $more_link_text, $stripteaser, $more_file);

59行目 変更前
function get_the_contentshowhide($more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {

変更後
function get_the_contentshowhide($content, $more_link_text = ‘(more…)’, $stripteaser = 0, $more_file = ”) {

65行目 変更前
return $post->post_content;

変更後 return $content;

これぞ、試行錯誤。
こういう方法がいいのか悪いのかわかりませんが、普通はテストサイトあたりでごにょごにょすることを公開でしたまでのこと。 :lol:

この 0 ってフィルターの優先度なのですが、0 が一番高いんですよね。なにも指定しないと 10 になって一番最後に実行されるようです。

そんな意味があることさえ知りませんでしたよ。今日はスゴイ勉強した気分です。

さぁ、最終テストをうまくクリアできるかどうか・・・。 :eek:

【関連記事】
WP ME 1.5.1-PreRelese
慌てない、慌てない
TB送信不良事件の原因
show-hide-more.phpの修正
■Show-Hide-Moreで苦しむ

ツイート

Top

タグ
タグ: , ,

ナビゲーションリンク
| UP |

の記事をすべて見る。

Top

コメントが 11件あります

コメント RSS を使用するとこの投稿のコメントが確認できます。
TrackBack URI
コメントしてみる?

  1. yutaka さんのコメント
    2005年 5月 17日 18:07 # Japan Windows Mozilla Firefox

    :?:  あれ∼、トラックバック飛んでないなぁ?
    hiromasaさんのブログにはトラックバックできたんだけど…

    返信する

  2. Masayan さんのコメント
    2005年 5月 17日 19:51 # Japan Windows Internet Explorer

    えっーー、受けれない?! :cry:

    また問題勃発かぁ∼。 :mad:

    返信する

  3. yutaka さんのコメント
    2005年 5月 17日 20:39 # Japan Windows Mozilla Firefox

    管理モードで見ると
    http://wp.mmrt-jp.net/wp-trackback.php?p=1449
    通知済みになってますが、どちらのWPに原因があるのだろうか :?:

    返信する

  4. yutaka さんのコメント
    2005年 5月 17日 21:19 # Japan Windows Mozilla Firefox

    おっ、今度はトラックバック成功してますねぇ :?:
    なんでだろう、もう大丈夫なのかなぁ :grin:

    返信する

  5. Masayan さんのコメント
    2005年 5月 17日 21:51 # Japan Windows Internet Explorer

    testサイトからTBしたくらいで何もしてません。 :smile:

    前回は同時送信だったのですか?
    私も4箇所同時送信で1箇所届かずということがありました。

    もう1つの”Show-Hide-More”を試してみないといけないですかねぇ。

    返信する

  6. yutaka さんのコメント
    2005年 5月 17日 21:55 # Japan Windows Mozilla Firefox

    >前回は同時送信だったのですか?
    同時送信はしてません、masayanさんにトラックバックして
    からhiromasaさんにトラックバックしました。

    返信する

  7. Masayan さんのコメント
    2005年 5月 17日 23:26 # Japan Windows Mozilla Firefox

    そーでしたか。 :cry:
    もちょっと、様子を見るしかなさそうですね。 :arrow:

    返信する

Top

コメントをどうぞ


:x :wink: :twisted: :shock: :sad: :oops: :o :mrgreen: :lol: :idea: :evil: :cry: :cheesy: :arrow-u: :arrow-l: :arrow-d: :D :?: :) :!: 8)
あなたの情報 (必須) help

twitter

e-mail

Top

Web Services by Yahoo! JAPAN