View Single Post
Old 01-09-2010, 01:04 AM  
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by Dennis69 View Post
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
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote