I've created a template in wordpress where the child pages of one page are displayed on the page. What is displayed is the thumbnail (feature item) of each page and the content of each page. The problem I'm having is that in Safari, the third (last page) is not displaying properly. Sometimes the thumbnail is appearing and no page content, and sometimes the third page doesn't appear at all. It has been checked in Firefox and Chrome and there are no errors.
This is the code:
<?php $pages = get_pages(array('child_of' => 7)); ?> <?php foreach ($pages as $page): ?> <div class="leftimage"> <?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?></div> <div class="textright"><h4><b><?php echo $page->post_title; ?></b></h4> <?php echo $page->post_content; ?> <p></p> </div> <img src="<?php bloginfo(stylesheet_directory); ?>/images/line3.png" alt="Separator" width="700" height="30" /> <?php endforeach; ?>