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

  1. Walter Neit
    Posted 2 years 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
    Posted 2 years ago #

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

    $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>';

Topic Closed

This topic has been closed to new replies.

About this Topic