Problems in PHP
-
Hi i have a problem with getting the Gallery Link URL to my href in line 8 how can i do it?
my code:
line 1: <?php $images = get_field(‘case_gallery’);
line 2: if( $images ): ?>
line 3:-
line 4: <?php foreach( $images as $image ): ?>
-
line 7: <?php $custom_url = get_post_meta( $attachment_id, $image[‘url’], true );?>
line 8: <a href
line 5: <ul class=”img-list”>
line 6:Hope the code helps, and you can help me out
-
line 7: <?php $custom_url = get_post_meta( $attachment_id, $image[‘url’], true );?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problems in PHP’ is closed to new replies.