Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi
    I saw you resolved your problem
    I have something similar
    I tried you code but it’s not working for me…
    here is my code could you help please
    Thanks in advance

    <div id="fancy_gallery" style="display:none">
    <?php
    $pp_portfolio_enable_slideshow_title = get_option('pp_portfolio_enable_slideshow_title');
    
    foreach($all_photo_arr as $key => $photo)
    {
    	$full_image_url = wp_get_attachment_image_src( $photo->ID, 'full' );
    	$small_image_url = wp_get_attachment_image_src( $photo->ID, 'large' );
    ?>
    <?php
    $thumb_id = get_post_thumbnail_id(get_the_ID());
    $alt = get_post_meta($thumb_id, '_wp_attachment_image_alt', true);
    if(count($alt)) echo $alt;
    ?>
    <a id="fancy_gallery<?php echo $key; ?>" alt="<?php echo $alt; ?>" href="<?php echo $full_image_url[0]; ?>" class="fancy-gallery" <?php if(!empty($pp_portfolio_enable_slideshow_title)) { ?> title="<?php echo $photo->post_title; ?>" <?php } ?>></a>
    <?php
    }
    ?>
    </div>
    Thread Starter Banahan

    (@banahan)

    Great news!!!!
    Sometimes solutions are so silly…
    Thanks a lot

Viewing 2 replies - 1 through 2 (of 2 total)