Only 1 of 9 child pages content is showing (WordPress & php)? why oh why
On my page Industry Executive Interviews | mosaic global executive search I have the following code (on a template called Subpage)
(I got the code from another thread in WordPress).
Start Code
=========
<?php
$pageChildren = $wpdb->get_results("
SELECT *
FROM $wpdb->posts
WHERE post_parent = ".$post->ID."
AND post_type = 'page'
ORDER BY menu_order
", 'OBJECT');
if ( $pageChildren ) :
foreach ( $pageChildren as $pageChild ) :
setup_postdata( $pageChild );
?>
<div class="entry">
<img src="<?php $values = get_post_custom_values("thumbnail"); echo $values[0]; ?>" class="left"><?php $values = get_post_custom_values("excerpt"); echo $values[0]; ?>
<p align="right"><?php print '<a href="' . get_permalink( $pageChild->ID ) . '">[more]</a>'; ?></p>
</div>
<br clear="all">
<hr class="snip" />
<?php
endforeach;
endif;
?>
=========
End Code
Which grabs all child pages and outputs some info & custom fields on a page.
And once someone clicks on the child page link [more] only the content for the first record show on the next page (the Mike Clayville one) and all the rest don't. All child pages use the same template "Page.php"... and I can't see that anything is different on each of the sub pages.
Thanks
Instant Social Anarchy / Market Samuari / From 0 To Profits / Ultra Spinnable Articles / Mass Video Distribution / SEO Linkvine / The Best Spinner ...plus many more.
Instant Social Anarchy / Market Samuari / From 0 To Profits / Ultra Spinnable Articles / Mass Video Distribution / SEO Linkvine / The Best Spinner ...plus many more.
I'm tired of my signature... Deleted.
Instant Social Anarchy / Market Samuari / From 0 To Profits / Ultra Spinnable Articles / Mass Video Distribution / SEO Linkvine / The Best Spinner ...plus many more.
Instant Social Anarchy / Market Samuari / From 0 To Profits / Ultra Spinnable Articles / Mass Video Distribution / SEO Linkvine / The Best Spinner ...plus many more.