Gallery

Back in the mists of time I used to create silly pictures. They’ve been offline for a while, but here they are again, in all their glory.

‘ASC’,
‘post_type’ => ‘page’,
‘post_parent’ => $post->ID,
‘post_status’ => null,
‘numberposts’ => -1,
);
$pages = get_posts($args);
if ($pages) {
foreach ($pages as $page) {
$args = array(
‘order’ => ‘ASC’,
‘post_type’ => ‘attachment’,
‘post_parent’ => $page->ID,
‘post_mime_type’ => ‘image’,
‘post_status’ => null,
‘numberposts’ => 1,
);
$attachments = get_posts($args);
echo ‘

Leave a Reply

You must be logged in to post a comment.