0
제품 세부 정보 페이지에서 제품에 대한 카테고리 루프를 만들고 싶습니다. (제품 아래). 제품은 제품 항목과 동일한 카테고리의 제품입니다.Wordpress WP-E-Commerce 플러그인. 카테고리 루프를 생성해야합니다.
정상적인 카테고리 args는 표준 Wordpress args에서 작동하지 않는 것 같습니다. wpsc_print_category_image()
또는 wpsc_print_category_name();
과 같은 WPEC의 사용자 지정 템플릿 태그는 사용자 지정 설정에서 작동하지 않는 것 같습니다. 여기
<?php
$args = array('post_type' => 'wpsc-product','posts_per_page' => 999, 'orderby'=>'title','order'=>'ASC','category_id'=>'5');
$loop = new WP_Query($args);
while ($loop->have_posts()) : $loop->the_post();
//the_title();
echo '<div class="isotope-item box default_product_display product_view_';
echo wpsc_the_product_id();
echo '">';
echo '<img src="';
echo wpsc_the_product_image();
echo '"/>';
?>
<div class="prod-info-container">
<div class="prod-info">
<h3 class="prodtitle entry-title">
<?php if(get_option('hide_name_link') == 1) : ?>
<?php echo wpsc_the_product_title(); ?>
<?php else: ?>
<?php echo wpsc_the_product_title(); ?>
<?php endif; ?>
</h3>
<p>
<?php echo the_excerpt(); ?>
</p><!--close wpsc_description-->
<a class="view-detail" href="<?php the_permalink();?>">view</a>
</div>
</div>
<?php
echo '</div>';
endwhile;
?>
하는 것을 시도하고있는 무슨의 예입니다하지만 난 그냥 하나 개의 범주로 제한하려는.
감사합니다.
$category = get_the_category();
$wpsc_product_category = get_the_product_category(wpsc_the_product_id());
$curr_cat = $wpsc_product_category[0]->slug;
: