サポート » テーマ » AppriseというテーマのTOPにあるPickUp記事の表示される法則がわかりません

  • 昨日からAppriseというテーマを使いはじめたのですが、
    AppriseというテーマのTOPにあるPickUp記事の表示される法則がわからず、困っています。

    ~サイト~
    http://tokyostreetsnap.com/

    ソースでいうところの、
    featured-post-1~5にあたる5記事なのですが、
    どのような法則で選ばれて、
    どのような周期で変更されるのか?
    また、どこからそお設定を変更したら良いのか?がわからずに困っています…

    同じテーマをお使いの方や、ソースから、法則などが分かる方がいらしたら、アドバイスいただけないでしょうか?
    よろしくお願いいたします><

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

    (@himakotss)

    おそらくソースはこれだと思います!

    <?php
    /**
    * @package Apprise
    */

    // Query featured entries

    $slider_cat = of_get_option(‘slider_cat’);

    if ($slider_cat == ” ) {
    $slider_cat = get_the_category();
    $slider_cat = $slider_cat[0]->term_id;
    } else {
    $slider_cat = of_get_option(‘slider_cat’);
    }

    $num_of_slides = 5;
    $count = 0;

    $featured_posts = new WP_Query(
    array(
    ‘posts_per_page’ => $num_of_slides,
    ‘cat’ => $slider_cat
    )
    );

    if ( of_get_option(‘featured_posts_on’) == ‘1’) {
    if (is_front_page() && !is_paged()) {
    ?>
    <div class=”featured-posts-wrapper”>
    <?php while ( $featured_posts->have_posts() ): $featured_posts->the_post();
    $count++ ?>
    <div class=”featured-post-<?php echo $count ?>”>
    <?php
    if ( has_post_thumbnail() ) { ?>
    <div class=”featured-img imgLiquidFill imgLiquid”>
    <?php the_post_thumbnail(‘full’); ?>
    </div>
    <?php
    }else{ ?>
    <div class=”featured-img imgLiquidFill imgLiquid”>
    <img class=”attachment-full wp-post-image rs-slide-image” width=”1024″ height=”500″ alt=”slide” src=”<?php echo get_template_directory_uri() ?>/images/assets/slide.jpg”>
    </div>
    <?php
    } ?>
    <div class=”featured-text”>
    “><h3 <?php post_class(‘entry-title’); ?>><?php the_title(); ?></h3>
    <?php the_excerpt();
    get_template_part( ‘featuredpost’, ‘meta’); ?>
    </div>
    </div>
    <?php endwhile;
    wp_reset_query();?>
    </div><!–featured-posts-wrapper–>
    <?php }
    }

    こんにちは、

    外観の Theme options を開いて、home page の項目から操作します。

    上部の5個の投稿を、特定のカテゴリだけ表示するなら、Select Featured Posts Category
    で、カテゴリを選択、

    下のほうに表示されている、投稿一覧は、Display Blog Posts on Home Page を OFFにすると表示されなくなるといった感じです。

2件の返信を表示中 - 1 - 2件目 (全2件中)
  • トピック「AppriseというテーマのTOPにあるPickUp記事の表示される法則がわかりません」には新たに返信することはできません。