返信先: 売り切れ表示
2014年12月5日 1:43 AM
#72960
参加者
お世話になります。
ご指摘があった箇所を調べてみましたが、PHPがあまり分からず直せておりません。
下記はうまくいかないソースの一部分です。線内のソースを追加しましたが、追加で「売切れ」が価格表示部分の下辺りに表示されただけで、価格部分はそのまま表示されたままになってしまいます。どのようにすれば正しく表示されますでしょうか。
<div id="content" class="one-column">
<h3>Featured Products</h3>
<div class="clearfix rcmnd">
<?php $reco_ob = new wp_query(array('category_name'=>'itemreco', 'posts_per_page'=>8, 'post_status'=>'publish')); ?>
<?php if ($reco_ob->have_posts()) : while ($reco_ob->have_posts()) : $reco_ob->the_post(); usces_the_item(); ?>
<div class="thumbnail_box">
<div class="thumimg"><a>"><?php usces_the_itemImage($number = 0, $width = 290, $height = 400 ); ?></a></div>
<div class="thumtitle"><a>" rel="bookmark"><?php usces_the_itemName(); ?></a></div>
________________________________
<?php if (!usces_have_zaiko_anyone() ) : ?>
<div class=”zaiko_status”>売切れ</div>
<?php else : ?>
<div class=”price”><?php usces_crform( usces_the_firstPrice(‘return’), true, false
); ?><?php usces_guid_tax(); ?></div>
<?php endif; ?>
________________________________
<?php if (usces_is_skus()) : ?>
<div class="price"><?php usces_crform( usces_the_firstPrice('return'), true, false ); ?></div>
<?php endif; ?>
</div>
<?php endwhile; else: ?>
<p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
<?php endif; wp_reset_query(); ?>
</div>
</div><!-- end of content -->
-
この返信は10年、 4ヶ月前に
atsumiが編集しました。