WordPress.org

Ready to get started?Download WordPress

Forums

WP ecommerce - How to Display only one Product Category (2 posts)

  1. Walter Neit
    Member
    Posted 10 months ago #

    I'm a new user of "WP ecommerce" pluging and i would like to know how can i display on my homepage only one Product Category (with a ID parameter): just title, description, image and link (not the product list).
    Should I use the "wpsc_start_category_query()" ?

    Thank for your help.

  2. Walter Neit
    Member
    Posted 10 months ago #

    I do a test with "get_term()", but I don't know how I can display the image category :/

    <?php
    $term_id_selection = 3;
    $term = get_term( $term_id_selection, "wpsc_product_category" );
    echo '<div class="my_featured_category">';
    echo '<a href="?wpsc_product_category=' . $term->slug . '" title="' . sprintf(__('View all post filed under %s', 'my_localization_domain'), $term->name) . '">' . $term->name . '</a>';
    echo '<p>' . $term->description . '</p>';
    echo '</div>';
    ?>

Reply

You must log in to post.

About this Topic