Mit diesem Codeschnipsel gebe ich alle Unterseiten einer Seite aus.
PHP
<?php
// Set up the arguments for retrieving the pages
$args = array(
'post_type' => 'page',
'numberposts' => -1,
'post_status' => null,
// $post->ID gets the ID of the current page
'post_parent' => $post->ID,
'order' => ASC,
'orderby' => title
);
$subpages = get_posts($args);
// Just another WordPress Loop
foreach($subpages as $post) :
setup_postdata($post);
?>
<div class="page-img"><?php echo get_the_post_thumbnail($pageChild->ID, array(420,100)); ?></div>
<h4><a href="<?php the_permalink(); ?>"
id="post-<?php the_ID(); ?>">
<?php the_title(); ?>
</a>
</h4>
<?php the_excerpt(); ?>
<?php endforeach; ?>
Alles anzeigen
Doch ich möchte das Vorschaubild
mit Timthumb ausgeben. Hat jemand eine Idee wie ich den Schnipsel ändern kann?