Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $group = get_post_meta( get_the_ID(), 'football_post_gallery', true );
- if( $group ) { ?>
- <div class="post-media">
- <div class="post-gallery-wrapper ">
- <ul class="">
- <li>
- <span>
- <?php
- foreach ( $group as $group ) {
- $images = isset( $group['football_post_gallery_images'] ) ? $group['football_post_gallery_images'] : array();
- foreach ( $images as $image ) {
- echo wp_get_attachment_image( $image, "featured-full" );
- }
- }
- ?>
- </span>
- <span>
- <?php
- $group = get_post_meta( get_the_ID(), 'football_post_gallery', true );
- foreach ( $group as $group ) {
- $heading = isset( $group['football_post_gallery_images_des'] ) ? $group['football_post_gallery_images_des'] : '';
- echo $heading;
- }
- ?>
- </span>
- </li>
- </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement