WP eCommerce
How to display products on the home page? (2 posts)

  1. Ichi
    Posted 3 years ago #

    Are there any ways to display products list on the homepage? I have try to make a sticky post which has products list within it, but it's list aren't go show up on the homepage, rather than single post itself

    Thanks before


  2. monika11
    Posted 3 years ago #

    $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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic