Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $album = get_post_meta($post->ID, "album", false);
- $album_list = get_post_meta($post->ID, "album_list", false);
- foreach ($album_list as $album_list) {
- list($key, $value) = explode(',',$album_list);
- $indexed_album_list[$key] = $value;
- }
- foreach ( $album as $each_album) {
- list($key,$album) = explode(',',$each_album);
- echo '<div>'.$album.'</div>';
- echo '<div>';
- if ($album_list = $indexed_album_list[$key]) {
- echo $album_list;
- } else {
- echo ' ';
- }
- echo '</div>';
- }
- ?>
Add Comment
Please, Sign In to add comment