Amending PHP for Wordpress Theme
<p>I have downloaded the following theme (<a href="http://demo.fabthemes.com/xenastore/" rel="nofollow">http://demo.fabthemes.com/xenastore/</a>) and i need a little help amending the index page.</p>

<p>At the moment it lists every product that i have created on the front page - what i would like is for it to only display a select few from a a certain "department" (they don't use categories) - say Featured. Below the 'Slider' and 'Deals'</p>

<p>The code is here but i am unsure which part to amend to only display that department and not everything on the site</p>

<pre><code>&lt;?php get_header(); ?&gt;

&lt;?php get_template_part( 'slider' ); ?&gt;
&lt;!-- Deals --&gt;

&lt;?php if (of_get_option('w2f_deal_show')== "1") { ?&gt;

&lt;div id="dealbanner"&gt;
    &lt;div class="dealbox dbleft"&gt;
        &lt;h1&gt;&lt;?php echo of_get_option('w2f_lbanner_head'); ?&gt;&lt;/h1&gt;
        &lt;p&gt;&lt;?php echo of_get_option('w2f_lbanner_text'); ?&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="dealbox dbmid"&gt;
        &lt;h1&gt;&lt;?php echo of_get_option('w2f_mbanner_head'); ?&gt;&lt;/h1&gt;
        &lt;p&gt;&lt;?php echo of_get_option('w2f_mbanner_text'); ?&gt;&lt;/p&gt;
    &lt;/div&gt;
    &lt;div class="dealbox dbright"&gt;
        &lt;h1&gt;&lt;?php echo of_get_option('w2f_rbanner_head'); ?&gt;&lt;/h1&gt;
        &lt;p&gt;&lt;?php echo of_get_option('w2f_rbanner_text'); ?&gt;&lt;/p&gt;
    &lt;/div&gt;
&lt;/div&gt;
    &lt;?php } ?&gt; 
&lt;!-- Store --&gt;

&lt;ul id="storefront"&gt;
    &lt;?php
    $temp = $wp_query;
    $wp_query= null;
    $wp_query = new WP_Query();
    $wp_query-&gt;query('post_type=product&amp;paged='.$paged);
    ?&gt;
    &lt;?php while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); ?&gt;

    &lt;li class="storepanel"&gt;
        &lt;div class="panelpic"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;   &lt;?php the_post_thumbnail( 'product_panel', array('class' =&gt; 'impanel') ); ?&gt;&lt;/a&gt;&lt;/div&gt;
        &lt;div class="paneldata"&gt;
            &lt;h2&gt; &lt;a href="&lt;?php the_permalink() ?&gt;"&gt; &lt;?php the_title(); ?&gt; &lt;/a&gt;&lt;/h2&gt;
            &lt;p&gt;&lt;?php echo get_the_term_list( $post-&gt;ID, 'department', '', ', ', '' ); ?&gt;&lt;/p&gt;
            &lt;div class="panelcopy"&gt;&lt;p&gt;&lt;?php wpe_excerpt('wpe_excerptlength_aside', ''); ?&gt;&lt;/p&gt;&lt;/div&gt;
                &lt;span class="sl-price"&gt;&lt;?php echo get_post_meta($post-&gt;ID, 'WTF_price', true) ?&gt;&lt;/span&gt;
                &lt;span class="sl-buy"&gt; &lt;a href="&lt;?php the_permalink() ?&gt;"&gt; More Info &lt;/a&gt; &lt;/span&gt;
        &lt;/div&gt;
    &lt;/li&gt;

    &lt;?php endwhile; ?&gt;
    &lt;?php getpagenavi(); ?&gt;
    &lt;?php $wp_query = null; $wp_query = $temp;?&gt;
&lt;/ul&gt;


&lt;?php get_footer(); ?&gt;
</code></pre>

<p>Thank you in advance for your help</p>
