Revision: 42425
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 4, 2011 23:01 by mesh606
Initial Code
<?php $childPagesRepeatedGroup = simple_fields_get_post_group_values(get_the_id(),"Child Pages", true, 2); if ( isset($childPagesRepeatedGroup) && count($childPagesRepeatedGroup) > 0 ) { foreach ( $childPagesRepeatedGroup as $childPage ) { $imageSource = wp_get_attachment_image_src($childPage['Pic']); ?> <div class="child-links"> <img src="<?php print $imageSource[0]; ?>" width="<?php print $imageSource[1]; ?>" height="<?php print $imageSource[2]; ?>" /> <h2><?php print $childPage['Heading']; ?></h2> <p><?php print $childPage['Text']; ?></p> </div> <?php } ?>
Initial URL
Initial Description
Dispaly a repeatable region using the Simple Fields wordpress plugin.
Initial Title
Wordpress Simple Fields Plugin - Show Repeatable Region
Initial Tags
plugin, wordpress, simple
Initial Language
PHP