I am pulling out values from a series of custom fields named thumb:
<?php
$mykey_values = get_post_custom_values('preview');
foreach ( $mykey_values as $key => $value ) {
echo "<img src='$value' width='590' />";
}
?>
How do I reverse the order of the output?
array_reverse
:Your best bet is probably
array_reverse
right before yourforeach
.http://php.net/manual/en/function.array-reverse.php
Use array_reverse.