Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

WP-Sess on "Changed Query Results Now archive date not working"

$
0
0

I have added a new page Template so that I can display News (news Category) & Blog (everything else) on 2 separate pages. all works fine. The Archive widget to call all bt Category works fine BUT the obe that uses dates (months) displays all blog data ? URL seems to be correct but always displays everything ??

It looks like I need to reset the query var but dont know how ?? any help would be gratefully received.

<?php
$the_page = get_query_var('paged'); //<!-- tell wordpress this is paged
query_posts('cat=-6&order=DSC&posts_per_page=20&paged='.$the_page);?>

<?php while ( have_posts() ) : the_post(); ?>

<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>


Viewing all articles
Browse latest Browse all 8245

Trending Articles