[解決済み] 商品一覧に、空白の項目ができてしまう。

フォーラム 使い方全般 [解決済み] 商品一覧に、空白の項目ができてしまう。

  • このトピックには2件の返信、2人の参加者があり、最後にnonchanにより11年前に更新されました。
3件の投稿を表示中 - 1 - 3件目 (全3件中)
  • 投稿者
    投稿
  • #52694
    nonchan
    参加者

    動作に関するご質問の場合は必ずご記入ください。


    WordPress のバージョン:WordPress 3.4

    Welcart のバージョン:Version 1.1.7.1206141

    ご利用のテーマ:Welcart Default Themeバージョン1.1

    症状を確認したブラウザ:Chrome

    サーバー(会社名、サービス名):さくら

    SSLの利用: 無し

    WordPress のパーマリンク設定:デフォルト


    お世話になります。phpの知識ほとんど無、welcart初心者です。

    商品一覧画面についてなのですが、

    数か所、空白の項目が入ってしまいます。

    最近まではそのようなことはなかったのですが、特にphpの編集もしてないのに突然起きました。

    商品の登録は今まで通り行っています。

    社内にwelcartを作った人が辞めてしまったので詳しいものがおらず困っています。宜しくお願い致します。

    問題のページはこちらです。

    http://xn--cckweva4a4e9dy723fm0f.jp/?page_id=2

    おそらく ALL Item category templateという部分を読み込んでいるようなのですが、そこに書いているものが下記です。


    <?php

    /*

    Template Name: ALL Item category template

    * <meta content=”charset=UTF-8″>

    * @package Welcart

    * @subpackage Welcart Default Theme

    */

    get_header();

    ?>

    <div id=”content” class=”two-column”>

    <?php if (have_posts()) the_post(); ?>

    <h1 class=”pagetitle”><?php the_title(); ?></h1>

    <div class=”catbox”>

    <div class=”post” id=”<?php echo $post->post_name; ?>”>

    <?php the_content(); ?>

    <?php $paged = $wp_query->query_vars; ?>

    <?php $category_name = get_post_meta($post->ID, ‘category_slug’, true); ?>

    <?php $posts_per_page = 30; ?>

    <?php $order = get_post_meta($post->ID, ‘order’, true); ?>

    <?php query_posts(‘category_name=’ . $category_name . ‘&status=post&paged=’ . $paged . ‘&posts_per_page=’ . $posts_per_page . ‘&order=’. $order); ?>

    <div class=”pagenavi”><?php posts_nav_link(‘ — ‘, __(“« Previous page”, ‘usces’), __(“next page »”, ‘usces’)); ?></div>

    <div class=”clearfix_category “>

    <?php $reco_ob = new wp_query(array(‘category_name’=>’itemreco’, ‘posts_per_page’=>30, ‘post_status’=>’publish’)); ?>

    <?php if ($reco_ob->have_posts()) : while (have_posts()) : the_post(); ?>

    <div class=”thumbnail_box”>

    <div class=”thumimg”>“><?php usces_the_itemImage($number = 0, $width = 108, $height = 108 ); ?></div>

    <div class=”thumtitle”>” rel=”bookmark”><?php usces_the_itemName(); ?></div>

    <div class=”price”><?php usces_crform( usces_the_firstPrice(‘return’), true, false ); ?><?php usces_guid_tax(); ?></div>

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

    <div class=”price”><?php usces_crform( usces_the_firstPrice(‘return’), true, false ); ?><?php usces_guid_tax(); ?></div>

    <?php endif; ?>

    </div><!– thumbnail_box –>

    <?php //comments_template(); // Get wp-comments.php template ?>

    <?php endwhile; else: ?>

    <p><?php _e(‘The article was not found.’, ‘usces’); ?></p>

    <?php endif; ?>

    </div><!– clearfix –>

    <div class=”pagenavi_bottom”><?php posts_nav_link(‘ — ‘, __(“« Previous page”, ‘usces’), __(“next page »”, ‘usces’)); ?></div>

    </div>

    </div><!– end of catbox –>

    </div><!– end of content –>

    <?php get_sidebar( ‘other’ ); ?>

    <?php get_footer(); ?>

    #66605
    yasumax
    キーマスター

    こんにちは。

    下記トピックをご参照ください。

    Welcartフォーラム|商品一覧に他の記事も表示される

    #66606
    nonchan
    参加者

    ありがとうございました。

    投稿ページを追加したので商品一覧に出ていたんですね。

    初歩的なミスですみませんです。

3件の投稿を表示中 - 1 - 3件目 (全3件中)
  • このトピックに返信するにはログインが必要です。