Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter itsadim

    (@adimsubedi)

    I asked my client to get the connection updated with PayPal ad was fixed.You need to get in touch with PayPal and get the settings. Then it works

    Thread Starter itsadim

    (@adimsubedi)

    Th issue is resolved

    Thread Starter itsadim

    (@adimsubedi)

    Figured it out, Might be helpful for someone who needs to update:
    I got two fields for gallery, a) thumbnail b) Original image size. I got the gallery id to use as url for modal pop up:

    <ul class="large-block-grid-5 medium-block-grid-5 small-block-grid-2">
                <?php while(have_posts()): the_post();
                $entries = get_post_meta( get_the_ID(), 'gallery_meta_group', true );
                foreach ( (array) $entries as $key => $entry ) {
                  $gallery_image = $origigallery_image = $gal_id='';
                  if ( isset( $entry['gallery_image_id'] ) ) {
                    $gallery_image = wp_get_attachment_image( $entry['gallery_image_id'], 'share-pick', null, array(
                      'class' => 'thumb',
                      ) );
                  }
    
                  if ( isset( $entry['origigallery_image_id'] ) ) {
                    $origigallery_image = wp_get_attachment_image( $entry['origigallery_image_id'], 'share-pick', null, array(
                      'class' => 'thumb',
                      ) );
                  }
    
                  if ( isset( $entry['gallery_image_id'] ) )
                    $gal_id = ( $entry['gallery_image_id'] );
                  ?>
    
                  <li>
                    <a href="#" data-reveal-id="modal-<?php echo $gal_id; ?>">
                      <div class="image-wrapper">
                        <img src="<?php echo $entry['gallery_image']; ?>">
                      </div>
                    </a>
                  </li>
                  <div id="modal-<?php echo $gal_id; ?>" class="reveal-modal" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog">
                   <img src="<?php echo $entry['origigallery_image']; ?>">
                   <a class="close-reveal-modal" aria-label="Close">×</a>
                 </div>
                 <?php } ?>
               <?php endwhile; ?>
             </ul>
Viewing 3 replies - 1 through 3 (of 3 total)