Adding "Other items listed by" to 3.0.4
<ul>
<?php query_posts(array('posts_per_page' => 5, 'post_type' => 'ad_listing', 'post_status' => 'publish', 'author' => get_the_author_meta('ID'), 'orderby' => RAND, 'post__not_in' => array($post->ID))); ?>
<?php if(have_posts()) : ?>
<?php while(have_posts()) : the_post() ?>
<li>
<a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; ?>
<?php else: ?>
<li><?php _e('No other ads by this poster found.','appthemes'); ?></li>
<?php endif; ?>
</ul>
<div class="pad5"></div>
<a href="<?php echo get_author_posts_url(get_the_author_id()); ?>" class="btn"><span><?php _e('View all ads by','appthemes'); ?> <?php the_author_meta('display_name'); ?> »</span></a>
This query doesn't break the site but it doesn't work either. Anyone have an idea?