Rules for the order of custom fields
-
Hi, I’m using custom fields on a page. I use the following code to get the values I want.
<?php if (get_post_custom_values('Testimonial')){ $mykey_values = get_post_custom_values('Testimonial'); foreach ( $mykey_values as $key => $value ) echo "<li>$value</li>"; } ?>The values are not going in chronological order at all. It looks like it’s going by alphabetical or length order. I want to make this go in chronological order. For example, new ones on top and old ones go bottom as I add custom fields. I actually don’t mind which chronological way it goes because I can change it with array_reverse();.
Any suggestion please?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
The topic ‘Rules for the order of custom fields’ is closed to new replies.