title: how to display portfolio category above the content in loop portfolio page
body: <p>i want to display portfolio category above the content where all portfolio is displayed. i know some of the modification is required in loop portfolio.php but how put that so that it display above the content post. i want to display in ul li format how it possible?? i m using broadscope theme</p>
  
  <p>my code for loop portfolio.php is given below </p>
  
  <pre><code>&lt;?php 
  global $avia_config;
  if(isset($avia_config['new_query'])) {
  
      query_posts($avia_config['new_query']);
   }
  
  // check if we got a page to display:
  if (have_posts()) :
  
  
      $loop_counter = 1;
      $extraClass = 'first';
  
      //iterate over the posts
      while (have_posts()) : the_post();  
  
      //get the categories for each post and create a string that serves as classes so the javascript can sort by those classes
      $sort_classes = "";
      $item_categories = get_the_terms( $id, 'portfolio_entries' );
  
      if(is_object($item_categories) || is_array($item_categories))
      {
          foreach ($item_categories as $cat)
          {
              $sort_classes .= $cat-&gt;slug.'_sort ';
          }
      }
  
  
  ?&gt;
  
  
          &lt;div class='post-entry one_third all_sort &lt;?php echo $sort_classes.$extraClass; ?&gt;'&gt;
  
              &lt;a href="&lt;?php echo get_permalink() ?&gt;" rel="bookmark" title="&lt;?php _e('Permanent Link:','avia_framework')?&gt; &lt;?php echo avia_inc_display_featured_within_entry('portfolio', false); ?&gt;"&gt;&lt;?php echo avia_inc_display_featured_within_entry('portfolio', false); ?&gt;&lt;/a&gt;
  
              &lt;a href="&lt;?php echo get_permalink() ?&gt;" rel="bookmark" title="&lt;?php _e('Permanent Link:','avia_framework')?&gt; &lt;?php the_title(); ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;
  
              &lt;span class='date_sort hidden'&gt;&lt;?php the_time('Y m d H i s'); ?&gt;&lt;/span&gt;
  
              &lt;div class="entry-content"&gt;
  
                  &lt;!--&lt;?php the_excerpt(); ?&gt; --&gt;
  
              &lt;!--&lt;a class="more-link" href="&lt;?php echo get_permalink(); ?&gt;"&gt;&lt;?php _e('Read more','avia_framework'); ?&gt;&lt;/a&gt;
              --&gt;
              &lt;/div&gt;                          
          &lt;!-- end post-entry--&gt;
          &lt;/div&gt;
  
  &lt;?php 
  
      $loop_counter++;
      $extraClass = "";
      if($loop_counter &gt; 3)
      {
          $loop_counter = 1;
          $extraClass = 'first';
      }
  
  
      endwhile;       
      else: 
  ?&gt;  
  
      &lt;div class="entry"&gt;
          &lt;h1 class='post-title'&gt;&lt;?php _e('Nothing Found', 'avia_framework'); ?&gt;&lt;/h1&gt;
          &lt;p&gt;&lt;?php _e('Sorry, no posts matched your criteria', 'avia_framework'); ?&gt;&lt;/p&gt;
      &lt;/div&gt;
  &lt;?php
  
      endif;
  
  ?&gt;
  </code></pre>
  
  <p>i  want to display portfolio category before </p>
  
  <pre><code>&lt;a href="&lt;?php echo get_permalink() ?&gt;" rel="bookmark" title="&lt;?php
  _e('Permanent Link:','avia_framework')?&gt; &lt;?php echo avia_inc_display_featured_within_entry('portfolio', false); ?&gt;"&gt;
  </code></pre>
  
  <p>inside </p>
  
  <pre><code>&lt;div class='post-entry one_third all_sort &lt;?php echo
  $sort_classes.$extraClass; ?&gt;'&gt;
  </code></pre>
  
  <p>so please help me if anyone know this. hope friends you help me regarding this question</p>