php - Page not found using paginate_links() with a no logged user -
i very strange problem. have page custom search:
global $query_string; $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $the_query = new wp_query(); $the_query->query($query_string.'&paged='.$paged.'&posts_per_page=50&post_status=any'); while ( $the_query->have_posts() ) : $the_query->the_post();
it works correctly see 50 posts per page. problem pagination need show like:
1 2 3 4 last >>
i found useful wordpress function paginate_links()
but there strange error.... if i'm logged can see secord, third ... pages, if i'm not logged 404 not found!
how possible? urls are:
http://www.example.com/date/2012?cat=8 http://www.example.com/date/2012/page/2?cat=8
(archive.php)
so, must logged see second, third etc etc pages, otherwise cann see first!
how can solve it? thanks
Comments
Post a Comment