odaka
フォーラムへの返信
2件の返信を表示中 - 1 - 2件目 (全2件中)
-
フォーラム: テーマ
返信が含まれるトピック: ページテンプレートの作成とりあえず、作成してみました。
なんとなく、okかと思っています。<?php /** * @package WordPress * @subpackage Default_Theme */ /* Template Name: no-inherentenext */ ?> <table width='400' border='0' cellspacing='0'> <tr width='400'> <td width='400'> <?php query_posts('category_name=' . $category_name[0] . '&status=post&paged=' . $paged . '&posts_per_page=' . $posts_per_page[0] . '&order='. $order[1]); ?> <!-- 投稿記事 width400 --> <?php if (have_posts()) the_post(); ?> <div class="post" id="<?php echo $post->post_name; ?>"> <h2><?php the_title(); ?></h2> <?php the_content(); ?> <!-- ページナビ --> <div class="pagenavi"><?php posts_nav_link(' — ', __("« Previous page", 'usces'), __("next page »", 'usces')); ?></div> <div class="clearfix"> <?php if (have_posts()) : while (have_posts()) : the_post(); usces_the_item(); ?> <div class="thumbnail_box"> <div class="thumimg"><a href="<?php the_permalink() ?>"><?php usces_the_itemImage($number = 0, $width = 108, $height = 108 ); ?></a></div> <div class="thumtitle"><a href="<?php the_permalink() ?>" rel="bookmark"><?php usces_the_itemName(); ?> (<?php usces_the_itemCode(); ?>)</a></div> <?php if (usces_is_skus()) : ?> <div class="price"><?php _e('$', 'usces'); ?><?php usces_the_firstPrice(); ?><?php usces_guid_tax(); ?></div> <?php endif; ?> </div> <!-- thumbnail_box --> <?php //comments_template(); // Get wp-comments.php template ?> <?php endwhile; else: ?> <?php endif; ?> </div> </td> </tr> </table>
フォーラム: テーマ
返信が含まれるトピック: ページテンプレートの作成アドバイス、ありがとうございます。
勉強します。
お騒がせしました。
2件の返信を表示中 - 1 - 2件目 (全2件中)