Custom Field Output is Random
-
I have seen a few similar questions but still can’t find an answer. The code below is outputting the custom field values in random order. The order doesn’t change, but is different from page to page.
The fields are ordered in sequential order (HA01.png, HA02.png, HA03.png) etc. They are also input in the correct order.
<?php $image = get_post_meta($post->ID, 'Image', true); $imagelarge = get_post_meta($post->ID, 'ImageLarge', false); $client = get_post_meta($post->ID, 'Client', true); ?> <ul> <?php foreach($imagelarge as $images){ ?> <li> <a rel="<?php echo $client; ?>" href="http://www.bradlangdon.co.uk/wp-content/uploads/<?php echo $images; ?>" > </a> </li> <?php } ?> </ul>
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
The topic ‘Custom Field Output is Random’ is closed to new replies.