Posted By

tutmeister on 09/14/08


Tagged

wordpress real estate great 26


Versions (?)

Latest listings in unordered list - wordpress 2.6 with Great Real Estate Plugin


 / Published in: PHP
 

URL: http://rogertheriault.com/forums/topic.php?id=60

Using wordpress 2.6 and the Great Real Estate plugin. This code assumes your listing category is #4. It's output is an unordered list of the latest listings, latest at the top, with the date they were posted.

  1. <ul>
  2.  
  3. <?php while (wp_list_pages('child_of=4&title_li=&sort_column=post_date&show_date=created&sort_order=desc')) : the_page(); ?>
  4.  
  5. <li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title();?></a></li>
  6.  
  7. <?php endwhile; ?>
  8.  
  9. </ul>

Report this snippet  

You need to login to post a comment.