I'm trying to get posts working alphabetically.
Only thing is, I'm showing a list of child posts on the page using the following code:
<?php
$pageChildren = $wpdb->get_results("
SELECT *
FROM $wpdb->posts
WHERE post_parent = ".$post->ID."
AND post_type = 'page'
ORDER BY menu_order
", 'OBJECT');
if ( $pageChildren ) :
foreach ( $pageChildren as $pageChild ) :
setup_postdata( $pageChild );
?>
<?php $imagethumb = get_post_meta($pageChild->ID, 'image-thumb', $single = true); ?>
<div id="solutionbutton">
<div id="centerbutton">
<img src="<?php echo $imagethumb; ?>" />
<h4><?php print '<a href="' . get_permalink( $pageChild->ID ) . '">' . get_the_title( $pageChild->ID ) . '</a>'; ?></h4>
</div>
<div id="entry">
<?php echo excerpt(13); ?>
</br></br>
<a href="<?php echo get_permalink($pageChild->ID); ?>">Read More...</a>
</div>
</div>
<?php
endforeach;
endif;
?>
Nothing I've tried is getting it to work alphabetically!