08/06/2014 at 2:10 pm
#299910
Guest
I’ll check into it – I’m hoping to create a loop where I’m displaying the members, similar to how I do on another site with some custom post types.
<?php
global $post;
$args = array( 'numberposts' => 7, 'category' => 6 );
$myposts = get_posts( $args );
foreach( $myposts as $post ) : setup_postdata($post); ?>
<li>
<img src="<?php $pic = get_post_meta($post->ID, 'pic', true); if($pic != '') {echo "$pic";}?>" width="872" height="238" alt="<?php the_title(); ?>" />
<div class="info-block">
<span class="featured-kids">Featured Kids</span>
<h2 class="txt-kidfeatured"><?php $nickname = get_post_meta($post->ID, 'nickname', true); if($nickname != '') {echo "$nickname";}?>.<a class="more" style="<?php $css = get_post_meta($post->ID, 'css', true); if($css != '') {echo "$css";}?>" href="<?php the_permalink(); ?>"> </a></h2>
<div class="txt-kidblurb"><?php $blurb = get_post_meta($post->ID, 'blurb', true); if($blurb != '') {echo "$blurb";}?></div>
</div>
</li>
<?php endforeach; ?>
