Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- query_posts( array( 'post_type' => 'post', 'showposts' => 10 ) );
- if ( have_posts() ) : while ( have_posts() ) : the_post();
- ?>
- <?php $judges = get_post_meta($post->ID, 'judge', false); ?>
- <ul>
- <?php foreach($judges as $judge) {
- echo '<li>'; ?>
- <a href="<?php echo esc_url( home_url( '/' ) ); ?>judge/<?php echo get_post_meta($post->ID, 'judge', true) ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">
- <?php echo $judge; ?>
- <?php echo '</a></li>';
- } ?>
- </ul>
- <?php endwhile; endif; wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment