title: Wordpress Pagination not working
body: <p>I have tried multiple solutions but it's not working.</p>
  
  <p>When I go to /page/2, it doesn't work.</p>
  
  <p>I'm executing a custom query in index.php of my theme.</p>
  
  <pre><code>if ( get_query_var('paged') ) {
      $paged = get_query_var('paged');
  } elseif ( get_query_var('page') ) {
      $paged = get_query_var('page');
  } else {
      $paged = 1;
  }
  
  $args = array(
      'post_type' =&gt; array('post', 'music', 'videos'),
      'post_status' =&gt; 'publish',
      //'meta_key' =&gt; 'featured',
      //'meta_value' =&gt; '1',
      'posts_per_page' =&gt; 10,
      'orderby'=&gt;'date',
      'order'=&gt;'DESC',
      'paged' =&gt; $paged
  );
  
  query_posts($args);
  </code></pre>
  
  <p>Here is the link to my website: <a href="http://bit.ly/VF4QmJ" rel="nofollow">Home Page of my Site</a> </p>
  
  <p>This page is not working (throwing 404) - <a href="http://bit.ly/YOCA2L" rel="nofollow">Page which is not working</a>(of the format - mywebsite/page/2/)</p>
  
  <p>Just realized this page 2 works - <a href="http://bit.ly/VvBj8Z" rel="nofollow">Page which is working</a> (of the format - mywebsite.com/?page=2)</p>