PHP Warning: Warning: array_shift() expects parameter 1 to be array
<pre><code>Warning: array_shift() expects parameter 1 to be array, object given in /hermes/walnaweb01a/b1374/moo.peachdesigninccom/tools4hardwood/wp-content/themes/listings/homepage_loops/content-listingsum.php on line 18
</code></pre>

<p>Is an error I'm getting on this page <a href="http://www.tools4hardwoods.com/home-2/" rel="nofollow noreferrer">http://www.tools4hardwoods.com/home-2/</a> and I'm having no luck. Can some one help me debug?</p>

<p>Heres the full code:  </p>

<pre><code>&lt;div class="car-list"&gt;
    &lt;div class="car-img"&gt;
        &lt;?php if(has_post_thumbnail()): ?&gt;
            &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;?php the_post_thumbnail("home_listing"); ?&gt;&lt;/a&gt;
        &lt;?php endif; ?&gt;
    &lt;/div&gt;
    &lt;div class="car-info"&gt;
        &lt;a href="&lt;?php the_permalink(); ?&gt;"&gt;&lt;h3&gt;&lt;?php the_title(); ?&gt;&lt;/h3&gt;&lt;/a&gt;
        &lt;h2 class="car-price"&gt;&lt;?php get_listing_price(); ?&gt;&lt;/h2&gt;
        &lt;ul class="car-tags clear"&gt;
            &lt;?php
            global $post;
            $configuration = get_listing_display_attributes($post-&gt;ID);
            if ($configuration):
                foreach ($configuration as $tax) {
                    $terms = get_the_terms($post-&gt;ID,$tax);
                    if ($terms):
                        $term = array_shift($terms);
                        $term_link = get_term_link($term-&gt;slug,$term-&gt;taxonomy);
                        $term_name = $term-&gt;name;
                        $taxonomy = get_taxonomy($term-&gt;taxonomy);
                        ?&gt;
                        &lt;a href="&lt;?php echo $term_link; ?&gt;"&gt;&lt;?php echo $term_name; ?&gt;&lt;/a&gt;
                    &lt;?php
                    endif;
                }
            endif;
            ?&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
    &lt;div style="clear:both;"&gt;&lt;/div&gt;
&lt;/div&gt;
</code></pre>