Advertisement
Guest User

Untitled

a guest
Feb 4th, 2018
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.96 KB | None | 0 0
  1. <?php
  2.             $group = get_post_meta( get_the_ID(), 'football_post_gallery', true );
  3.  
  4.             if( $group ) { ?>
  5.             <div class="post-media">
  6.  
  7.                 <div class="post-gallery-wrapper ">
  8.                     <ul class="">
  9.                         <li>
  10.                             &lt;span&gt;
  11.                                 &lt;?php
  12.                                 foreach ( $group as $group ) {
  13.                                     $images = isset( $group['football_post_gallery_images'] ) ? $group['football_post_gallery_images'] : array();
  14.                                     foreach ( $images as $image ) {
  15.                                         echo wp_get_attachment_image( $image, "featured-full" );
  16.                                     }
  17.                                 }
  18.                                 ?&gt;
  19.                             &lt;/span&gt;
  20.                             &lt;span&gt;
  21.                                 &lt;?php
  22.                                 $group = get_post_meta( get_the_ID(), 'football_post_gallery', true );
  23.                                 foreach ( $group as $group ) {
  24.                                     $heading = isset( $group['football_post_gallery_images_des'] ) ? $group['football_post_gallery_images_des'] : '';
  25.                                     echo $heading;
  26.  
  27.                                 }
  28.  
  29.                                 ?&gt;
  30.                             &lt;/span&gt;
  31.                         </li>
  32.                     </ul>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement