1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
            <?php
				$child_posts = types_child_posts('puppies');
				
				if ($child_posts) :
				
				foreach ($child_posts as $child_post) {
			?>
            	<div class="litterPup">
                	<div>
                    	<h2><a href="<?php echo get_permalink( $child_post->ID ); ?>" title="<?php echo $child_post->post_title; ?>"><?php echo $child_post->post_title; ?></a></h2>
                    	<div class="pupPicture left"><a href="<?php echo get_permalink( $child_post->ID ); ?>" title=""><?php echo get_the_post_thumbnail( $child_post->ID, array(350,175), $attr = '' ); ?></a></div>
                        <?php if ($child_post->fields['color']) : ?>
                        <div><?php echo $child_post->fields['color']; ?></div>
                        <?php endif; ?>
                        <?php if ($child_post->fields['sex']) : ?>
                        <div><?php echo $child_post->fields['sex']; ?></div>
                        <?php endif; ?>
                        <div class="pupPrice"><span>Price:</span> &#36;<?php echo $child_post->fields['puppy-price']; ?></div>
                        <div><a href="<?php echo get_permalink( $child_post->ID ); ?>" class="button small brown" title="<?php echo $child_post->post_title; ?>"><span>More Info</span></a></div>
                    </div><div class="clear"></div>
				</div>
            
            <?php endif; ?>