On child pages, I would like to have thumbnails of all other child pages with the same parent. I have the following code (and using Advanced Custom fields plugin):
<?php query_posts(array('showposts' => 20, 'post_parent' => 7, 'post_type' => 'page')); while (have_posts()): the_post(); ?>
<li class"<if this is the current page give class current>">
<h2><?php the_field('field_name'); ?></h2>
<?php endwhile ?>
I can get it to create a list, but not add a class to the current page item.
I hope the above makes some sense!