Results 1 to 2 of 2

Thread: Adding "Other items listed by" to 3.0.4

  1. #1
    Thread Starter
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts

    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'); ?> &raquo;</span></a>
    This query doesn't break the site but it doesn't work either. Anyone have an idea?

  2. #2
    Thread Starter
    Veteran doctorcilantro's Avatar
    Join Date
    Oct 2010
    Location
    Saudi Arabia
    Posts
    759
    Thanks
    2
    Thanked 26 Times in 16 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quick question: How to move "Just listed" widget?
    By blairashley in forum ClassiPress General Discussion
    Replies: 9
    Last Post: March 28th, 2012, 02:53 PM
  2. Adding a "Home" button to the left of "About" ? Possible w/ this theme?
    By freelancing in forum Report JobRoller Bugs
    Replies: 11
    Last Post: December 12th, 2010, 09:03 PM
  3. Replies: 6
    Last Post: October 2nd, 2010, 11:50 AM
  4. Isn't there a widget right under listed Ad shows "View Other Ads from This Poster"?
    By ejewelrysource in forum ClassiPress General Discussion
    Replies: 2
    Last Post: July 14th, 2010, 05:05 PM
  5. Add "SOLD" to items that are gone
    By tiffany in forum ClassiPress General Discussion
    Replies: 3
    Last Post: May 29th, 2009, 02:32 AM