0
這是我mp_productlist.phpMarketpress產品列表循環獲取只有一個產品
<?php get_header();?>
<div class="content_mid">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post thin">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
<h2><?php the_title(); ?></h2></a>
<a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php if (function_exists('add_theme_support')) the_post_thumbnail(); ?></a>
<h3><?php mp_product_price(true) ?></h3><?php mp_buy_button(true, 'single')?>
</div>
<?php endwhile;?>
<?php else : ?>
<?php endif; ?>
<!--end post-->
</div>
<?php get_footer();?>
,這就是我得到http://angelov.ga/old/store/products/
這只是抓取一個產品,而不是兩個測試產品我有
在此先感謝
我用我mp_category.php相同的代碼,它的工作與多個農資。我越來越感到沮喪 – HVSHBROWN 2014-12-04 11:03:29
至於我可以看到它取兩種不同的產品使用相同的圖像。 – 2014-12-04 11:13:34
這是因爲它是一個測試網站,它有2種產品使用相同的圖像。事情是......它需要像主導航欄中的「產品」。它應該像導航欄中的「產品」那樣顯示商店中的所有產品 – HVSHBROWN 2014-12-04 11:19:45