Re: 商品サブ画像の取得・ファイル名での振り分けについて

フォーラム テンプレート(テーマ) 商品サブ画像の取得・ファイル名での振り分けについて Re: 商品サブ画像の取得・ファイル名での振り分けについて

#64773
nanbu
キーマスター

こんにちは。

構文が違っているようですが、この様にして見てはどうでしょうか。

<!-- ギャラリー1 -->
<div class="itemsubimg1">
<ul id="subgallery1">
<?php $imageid = usces_get_itemSubImageNums(); ?>
<?php foreach ( $imageid as $id ) :
if( $id == 6 ){
break;
}
?>
<li class="view"><?php usces_the_itemImage($id, 135, 135, $post); ?></li>
<?php endforeach; ?>
</ul>
</div>

<!-- ギャラリー2 -->
<div class="itemsubimg2">
<ul id="subgallery2">
<?php $imageid = usces_get_itemSubImageNums(); ?>
<?php foreach ( $imageid as $id ) :
if( $id <= 5 ){
continue;
}
?>
<li class="view"><?php usces_the_itemImage($id, 135, 135, $post); ?></li>
<?php endforeach; ?>
</ul>
</div><!-- end of itemsubimg -->