• atsushi_y

    (@atsushi_y)


    カスタム投稿タイプ作ったページに、ページネーションを設置したいのですが、
    色々な方法を試したのですが表示されません。
    php、wordpress初心者で糸口が見つかりません。。
    過去のフォーラムを拝見させて頂いてもうまく表示されません。
    どなたかご教授お願いできないでしょうか。
    ソースは下記になります。

    <div id=”mainCont_Style”>
    <div id=”grid-content”>
    <?php
    $args = array(
    ‘tax_query’ => array(
    array(
    ‘taxonomy’ => ‘stylethumb_category’,
    ‘field’ => ‘slug’,
    ‘terms’ => array( ‘nail_style’ )
    )
    ),
    ‘post_type’ => ‘stylethumb’,
    ‘posts_per_page’ => -5
    );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();
    ?>
    <div>“>
    <?php $thumbnail_id = get_post_thumbnail_id($post->ID);
    $image = wp_get_attachment_image_src($thumbnail_id, ‘photolarge’); ?>
    ” rel=”shadowbox[nail]” title=”<?php the_title(); ?>”>
    <?php the_post_thumbnail(array(217,9999)); ?>

    </div>
    <?php endwhile; ?>
    </div>
    <!–/mainCont_Style–></div>
    <!–/sub_wrap–></div>

    カスタム投稿タイプで作ったページにカテゴリー別に画像の一覧を表示させようとしています。

    何卒宜しくお願い致します。

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

トピック「カスタム投稿タイプでのページネーション設置」には新たに返信することはできません。