フォーラムへの返信

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

    (@taikman)

    kzさん

    返答ありがとうございました。
    無事子カテゴリのみ表示する事ができました。
    ありがとうございます。
    とても助かりました。

    トピック投稿者 taikman

    (@taikman)

    taikikenさん

    本当にありがとうございます。
    無事解決する事ができました。

    何度もありがとうございまいた。

    トピック投稿者 taikman

    (@taikman)

    taikikenさん 

    何度もありがとうございます。
    すみません、色々試してみたのですがやはり解決できませんでした。

    お手数だとは思いますが、もしお時間があればコードを表示していただけると幸いです。

    何度もすみません。

    トピック投稿者 taikman

    (@taikman)

    taikikenさん 

    何度もありがとうございます。
    見当違いの質問をしていたらすみません。

    archive.php内に”year=YYYY&monthnum=MM”を、
    見つける事ができなかったのですが、
    他に方法はありますでしょうか。

    何度もすみません。

    トピック投稿者 taikman

    (@taikman)

    taikikenさんありがとうございます。

    早速、チャレンジしてみましたのですが、どうもうまくいきません。
    カテゴリー6だけ非表示にしたかったのですが、
    月別アーカイブページから確かにカテゴリー6は消えたのですが、
    表示がうまく行きません。

    例えば、以下のコードで10月の記事のアーカイブを表示しても、
    11月や12月の記事も表示されてしまいます。

    何かこれを直す方法を教えていただけると幸いです。
    よろしくお願いします。

    現在のarchive.phpのコードは以下のようになっております。

    ///////////////////////////////////////////////////////////////////////////////////
    <?php get_header(); ?>

    <div id=”content_box”>
    <!– Beggining of “content_box” –>

    <div id=”news_cotainer”>

    <?php if (have_posts()) : ?>

    <?php //$post = $posts[0]; // Hack. Set $post so that the_date() works. ?>

    <?php /* If this is a category archive */ if (is_category()) { ?>
    <span class=”.title”><?php echo single_cat_title(); ?></span>

    <?php /* If this is a monthly archive */ } elseif (is_month() ) { ?>
    <span class=”.title”><?php the_time(‘F Y’); ?></span>

    <?php query_posts(array(‘category__not_in’ => array(6))); ?>

    <?php } ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class=”entry”>
    <span class=”title”><?php the_title(); ?></span>
    <span class=”date”><?php the_time(‘n.j.Y’) ?></span>
    <p class=”tagged”>Tag:<?php the_category(‘ · ‘) ?></p>
    <div class=”btntops”><!– Beggining of “btntops” –>
    <span>Back to Top</span>
    </div>
    </div>

    <?php endwhile; ?>

    <?php endif; ?>

    <?php posts_nav_link(‘ | ‘,’next’,’previous’); ?>

    </div>

    //////////////////////////////////////////////////////////////////////////////////

5件の返信を表示中 - 1 - 5件目 (全5件中)