WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Ichi
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. monika11
    Member
    Posted 1 year 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

About this Topic