サポート » プラグイン » DC_nicer_archives

  • 解決済 eijiy

    (@eijiy)


    テスト環境のWordPress 2.9.2 日本語版でDC_nicer_archives 1.1 をインストールし有効化して、category.php full.php search.php をアップして archive.php はよく解らなかったのでアップしませんでした。
    それで検索をすると結果が「タイトル in 親カテゴリー」というそれぞれにリンクのかかった形式でリスト一覧で表示されタイトルはクリックするとリンク先へ移動できるのですが親カテゴリーのリンクをクリックると以下のエラーが出ます。
    Catchable fatal error: Object of class WP_Error could not be converted to string in C:\xampp\htdocs2\wp\wp-content\plugins\nicer_archives.php on line 24
    以下が24行付近のコードです。
    function cat_header_link() {
    global $posts, $post;
    if (!is_full() && (count($posts) > 0)) {
    ここが24行 $output = ‘ (‘.count($posts).’) category_id) .’&full=1″ rel=”bookmark” title=”Permanent Link: ‘.$category_name. ‘”>Expand‘;}
    elseif (count($posts) > 0) {$output = ‘ (‘.count($posts).’) category_id) .'” rel=”bookmark” title=”Permanent Link: ‘.$category_name. ‘”>Collapse‘;}
    else {$output = $category_name.’ (‘.count($posts).’)’;}
    return $output;
    }
    以上、ご教示ください。宜しくお願いいたします。

1件の返信を表示中 - 1 - 1件目 (全1件中)
  • トピック投稿者 eijiy

    (@eijiy)

    上記の件は解決しました。
    しかし EXPAND が上手く作動しません。
    これに関しては新たに質問します。

1件の返信を表示中 - 1 - 1件目 (全1件中)
  • トピック「DC_nicer_archives」には新たに返信することはできません。