Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ul id="biographies">
- <?php
- $args = array('post_type=page&sort=post_date&order=desc&post_parent=93&numberposts' => 8);
- $lastposts = get_posts( $args );
- foreach($lastposts as $post) : setup_postdata($post); ?>
- <li class="short-bio <?php post_class(); ?>">
- <div class="author-thumb"><a href="<?php echo get_permalink(); ?>" rel="author"><?php echo get_the_post_thumbnail(); ?></a></div>
- <?php the_title( '<h3 class="name tk-atrament-web"><a href="' . get_permalink() . '" title="' . the_title_attribute( 'echo=0' ) . '" rel="bookmark">', '</a></h3>' ); ?>
- <p class="position"><em><?php echo get_post_meta($post->ID, "position", true); ?></em></p>
- <p class="phone"><strong>T</strong> <?php echo get_post_meta($post->ID, "telephone", true); ?></p>
- <p class="email"><strong>E</strong> <?php echo get_post_meta($post->ID, "email", true); ?></p>
- <p class="read"><em><a href="<?php echo get_permalink(); ?>" rel="author">Read full bio</a></em></p>
- </li>
- <?php endforeach; ?>
- <?php wp_reset_query(); ?>
- </ul>
Add Comment
Please, Sign In to add comment