サポート » 使い方全般 » トップページに表示される記事一覧をカスタマイズしたいです

  • 初めて投稿させていただきます。
    PHPがわからず苦戦しております。

    デザインが気に入って、先日Direxというテーマの有料版を購入しました。
    http://newwpthemes.com/direx-free-wordpress-theme/
    ほぼそのまま利用したいと考えておりますが
    一箇所だけ変更したいところがあります。

    現状、トップページは最新の投稿をサムネイルつきで一覧表示しているのですが、これを特定のカテゴリに指定したいのです。

    当方、PHPを全く理解出来ていません。
    検索して調べ、参考となるコードを入れ替えてみたりして、何度も試みましたがPHPの構造そのものを理解できていないのでうまく表示されず、どうすればよいかさっぱりわかりません。

    どなたか、教えていただけないでしょうか。
    どうぞよろしくお願い申し上げます。

    <?php global $theme; ?>
    
        <div <?php post_class('post clearfix'); ?> id="post-<?php the_ID(); ?>">
    
            <div class="postmeta-primary">
    
                <span class="meta_date"><?php echo get_the_date(); ?></span>
               &nbsp;  <span class="meta_categories"><?php the_category(', '); ?></span>
    
                    <?php if(comments_open( get_the_ID() ))  {
                        ?> &nbsp; <span class="meta_comments"><?php comments_popup_link( __( 'No comments', 'themater' ), __( '1 Comment', 'themater' ), __( '% Comments', 'themater' ) ); ?></span><?php
                    }
                    ?>
            </div>
    
            <h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    
            <div class="entry clearfix">
    
                <?php
                    if(has_post_thumbnail())  {
                        ?><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail(
                            array($theme->get_option('featured_image_width'), $theme->get_option('featured_image_height')),
                            array("class" => $theme->get_option('featured_image_position') . " featured_image")
                        ); ?></a><?php
                    }
                ?>
    
                <?php
                    the_content('');
                ?>
    
            </div>
    
            <?php if($theme->display('read_more')) { ?>
            <div class="readmore">
                <a href="<?php the_permalink(); ?>#more-<?php the_ID(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'themater' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php $theme->option('read_more'); ?></a>
            </div>
            <?php } ?>
    
        </div><!-- Post ID <?php the_ID(); ?> --> 
2件の返信を表示中 - 1 - 2件目 (全2件中)
  • モデレーター Daisuke Takahashi

    (@extendwings)

    有償のテーマについてはこのフォーラムの対象ではありませんので、購入元に聞いてください。

    トピック投稿者 aoyan

    (@aoyan)

    そうでしたか。大変失礼いたしました。
    ありがとうございます。購入元に聞いてみます。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック「トップページに表示される記事一覧をカスタマイズしたいです」には新たに返信することはできません。