Quote:
Originally Posted by Dennis69
Just tryed that code Fris and I get
Parse error: syntax error, unexpected '='
Any idea what the problem could be?
|
are you closing the call properly? The code fris posted is correct and should work, it's the common solution used for your problem as developed by Kafkaesqui, one of WP main developers.
Anyway, alternatively you may try this with the is_home approach to see if it works (change is_archive to true if needed):
Code:
<?php
$limit = 10;
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
query_posts('cat=-3&paged=$paged' . '&posts_per_page=10' .'showposts=' . $limit . '&paged=' . $paged);
$wp_query->is_archive = false; $wp_query->is_home = true;
?>
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth
|