View Single Post
  #4 (permalink)  
Old 03-14-2008, 01:36 PM
BigAlReturns's Avatar
BigAlReturns BigAlReturns is offline
Moderator Extraordinaire!
 
Join Date: Dec 2007
Location: The Wirral, England
Posts: 291
Send a message via MSN to BigAlReturns
Default

Quote:
Originally Posted by ryanhellyer View Post
<ul>
<?php
wp_list_pages('exclude=$whatever' ); ?>
</ul>
Ah, well that would be a variable not a string
I think the problem is that you're using single quotes instead of double quotes - with singles, variables inside are not replaced with their value. You can either change to double quotes, or if this isn't convenient in the cotext of the surrounding code, just use concatenation like below:

wp_list_pages('exclude=' . $whatever);
Reply With Quote