A related question: I have several subpages with film reviews, each page has the custom field "regisseur" (=director), the title of the page is the respective film title. What I want is that all reviews are displayed as a a list. This works in principle with the following code:
<?php $customs = get_posts('numberposts=-1&post_type=page&post_parent=28&sort_column=post_title&order=ASC');
foreach($customs as $custom) {
$post_id_art = get_post($custom->ID, ARRAY_A);
$title = $post_id_art['post_title'];
$url = $post_id_art['guid'];
print "<a href=\"";
print $url;
print "\"><em class=\"Film\">";
print $title;
echo "</em></a>";
echo " von ";
print get_post_meta($custom->ID, 'Regisseur', $single = true);
print '<br />';
} ?>
See here
The problem is the sort order: I want the list displayed in alphabetical order. For some reason "&sort_column=post_title&order=ASC" is just ignored, instead the list is sorted by the pages IDs.
Any ideas?