title: exclude category from wordpress post
body: <p>I want to exclude category from shoowing my blog posts. My category id is <strong>62</strong>. category name is <strong>perfect_work</strong></p>
  
  <p>Here is my wordpress blog template code:</p>
  
  <pre><code>    &lt;div id="left" class="eleven columns"&gt;
  
      &lt;?php
      $temp = $wp_query;
      $wp_query= null;
      $wp_query = new WP_Query();
      $wp_query-&gt;query('paged='.$paged);
      ?&gt;
  
      &lt;?php while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); ?&gt;
  
          &lt;div class="post" id="post-&lt;?php the_ID(); ?&gt;"&gt;
  
              &lt;div class="title"&gt;
  
                  &lt;h2&gt;&lt;a href="&lt;?php the_permalink() ?&gt;" title="Permanent Link to &lt;?php the_title(); ?&gt;" &gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;
  
                  &lt;div class="postmeta"&gt;  &lt;span&gt;by &lt;?php the_author_posts_link(); ?&gt;&lt;/span&gt; | &lt;span&gt;&lt;?php the_time('l, F jS, Y') ?&gt;&lt;/span&gt; | &lt;span&gt;&lt;?php the_category(', '); ?&gt;&lt;/span&gt; &lt;/div&gt;
  
              &lt;/div&gt;
  
              &lt;div class="entry"&gt;
  
              &lt;?php $image_attr = wp_get_attachment_image_src(get_post_thumbnail_id($post-&gt;ID), 'top_feature'); ?&gt;    
  
                  &lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;img src="&lt;?php echo $image_attr[0]; ?&gt;" class="postim scale-with-grid" id="blog-thumb" &gt;&lt;/a&gt;
                  &lt;?php wpe_excerpt('wpe_excerptlength_archive', ''); ?&gt;
                  &lt;div class="clear"&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
      &lt;?php endwhile; ?&gt;
      &lt;?php getpagenavi(); ?&gt;
      &lt;?php $wp_query = null; $wp_query = $temp;?&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I already tried using </p>
  
  <pre><code>$wp_query = new WP_Query('cat=-62');
  </code></pre>
  
  <p>its not work. I also put </p>
  
  <pre><code>&lt;?php query_posts('cat=-62'); ?&gt;
  &lt;?php while ($wp_query-&gt;have_posts()) : $wp_query-&gt;the_post(); ?&gt;
  </code></pre>
  
  <p>Its work but page navigation not work, and also not showing others post. only 1st 5 post show.</p>
  
  <p>Any Solution?</p>