Query Posts Function not working
-
Hi I did a tutorial recently on how to create a loop that grabs information from pages with child pages to form a portfolio listing.
I am new to php and am getting an error on line 21 which apparently is where the syntax for the array exists.
Below is my code..I have copied everything as well as I could from video tute (maybe as it was low res a curly brace may need to be a bracket or visa versa)
<?php if ( (is_page(‘Portfolio’)) ) {
query_posts{
array(‘showposts’ => 100, ‘post_parent’=> 5, ‘post_type’ => ‘page’));
while (have_posts()) {
the_post();
$thumbPath = get_post_meta($post->ID, ‘thumbnail’, true;
if($thumbPath ==”){
$thumbPath=”/images/comingsoon.gif”;}
?>
<?php
wp_reset_query(); //Restore Global Post data
}
?>
The topic ‘Query Posts Function not working’ is closed to new replies.