| Junior Member with 8 posts. THREAD STARTER | | Join Date: Aug 2007 Experience: Intermediate | |
get_children Change Order in WordPress Theme I'm pretty sure this is a problem unique to the theme of the website so that's why I'm starting a new thread.
I need to change the order of the houses under "Premier Rentals" at this domain: http://www.joshuadesertretreats.com .
It's a Wordpress.org site and I'm not sure how to assign priority to each so that they display in a different order but I'm sure it's related to the red text below.
Here is the php code from the theme: Code: <?php block_start('scroller'); ?>
<h2 class="title">Premiere Rentals</h2>
<div class="container"><ul class="properties">
<?php $properties = get_children('post_parent=6&post_type=page&post_status=publish&orderby=menu_order&order=ASC'); foreach($properties as $property) { $id=$property->ID; $link=get_permalink($id); $title=$property->post_title; $content=$property->post_content; $image = get_the_image('thumbnail',1,$id); if($image) { ?>
<li class="property">
<h3 class="name"><a href="<?php echo $link; ?>"><?php echo $title; ?></a></h3>
<a href="<?php echo $link; ?>"><img src="<?php echo $image; ?>" alt="" /></a>
<?php if(get_post_meta($id,'max-guests',true)) echo ' <p class="max-guests">Sleeps up to '.get_post_meta($id,'max-guests',true).'</p>' . "\n"; ?>
<p class="blurb"><?php if(get_post_meta($id,'blurb',true)) the_blurb(get_post_meta($id,'blurb',true)); else the_blurb($content); ?></p>
</li>
<?php } } ?>
</ul></div>
<a href="javascript:void(0);" class="next"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/next.png" alt="Next" /></a>
<a href="javascript:void(0);" class="prev"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/prev.png" alt="Previous" /></a>
<br class="clear" />
<?php block_end(); ?> Does anyone see any thing that I'm missing? Thanks for your help. |