Support » Plugin: WP eCommerce » How to display products on the home page?

Viewing 1 replies (of 1 total)
  • $loop = new WP_Query( array( ‘post_type’ => ‘products’) ); ?>
    <?php while ( $loop->have_posts() ) : $loop->the_post(); ?>

    <?php the_title( ); ?>
    <?php the_content( ); ?>
    <?php endwhile; ?>
    Paste this code in index.php will work

Viewing 1 replies (of 1 total)
  • The topic ‘How to display products on the home page?’ is closed to new replies.