paginate_links not work in child theme
<p>i am using that code. its show the pagination but when i click on second page its show not found.</p>

<pre><code>$big = 999999999; // need an unlikely integer
echo paginate_links( array(
    'base' =&gt; str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ),
    'format' =&gt; '?paged=%#s%',
    'current' =&gt; max( 1, get_query_var('paged') ),
    'total' =&gt; $query-&gt;max_num_pages
) );    
</code></pre>

<p>i am using that code. its show the pagination but when i click on second page its show not found.</p>
