Error in displaying images

  • Unknown's avatar

    I installed a theme in wordpress portfolio and part of it is not generating the link that will open large image in a lightbox. Notice that it creates thumb normally, but which is to open in Ligthbox is blank the href = “”.
     
    If I change the code below href = “<php echo $ large_image;?>”> a href = “<php echo $ thumb;?>”> To test the link by clicking on the picture opens normally, but of course, link the thumb again.
     
    To see what I’m saying http://www.andresoliveira.com.br (click on the photo to see that does not open)
     
     
    Generated code with html href blank:

    <div class="post-thumb clearfix">
    
      <a class="lightbox" title="Carol e Eric" href="">
    
              <span class="overlay">
               <span class="icon"></span>
              </span>
    
    <img src="http://www.andresoliveira.com.br/wp-content/uploads/2013/12/carol-eric-capa.jpg" alt="Carol e Eric" />
    </a>
    </div>

    Código php:

    <?php /* if the post has a WP 2.9+ Thumbnail */
    
                            $lightbox = get_post_meta(get_the_ID(), 'tz_portfolio_lightbox', TRUE);
                            $thumb = get_post_meta(get_the_ID(), 'tz_portfolio_thumb', TRUE); 
    
    $embed = get_post_meta(get_the_ID(), 'tz_portfolio_embed_code', TRUE);
    
                            $image  = get_post_meta(get_the_ID(), 'tz_portfolio_image', TRUE);
                            $image2 = get_post_meta(get_the_ID(), 'tz_portfolio_image2', TRUE);
                            $image3 = get_post_meta(get_the_ID(), 'tz_portfolio_image3', TRUE);
                            $image4 = get_post_meta(get_the_ID(), 'tz_portfolio_image4', TRUE);
                            $image5 = get_post_meta(get_the_ID(), 'tz_portfolio_image5', TRUE);
    
                            $large_image =  wp_get_attachment_image_src( get_post_thumbnail_id(get_the_ID()), 'fullsize', false, '' );
    
                            if($lightbox == 'no')
                                $lightbox = FALSE;
    
                            if($thumb == '')
                                $thumb = FALSE;
    
                             $large_image = $large_image[0];
    
                            ?>
    
                            <div class="post-thumb clearfix">
    
                                 <?php if($lightbox) : ?>
                                    <a class="lightbox" title="<?php the_title(); ?>" href="<?php echo $large_image; ?>">
    
                                        <span class="overlay">
                                            <span class="icon"></span>
                                        </span>
    
                                        <?php if($thumb) : ?>
                                        <img src="<?php echo $thumb; ?>" alt="<?php the_title(); ?>" />
                                        <?php else: ?>
                                        <?php the_post_thumbnail('portfolio-thumb'); ?>
                                        <?php endif; ?>
                                    </a>
                                <?php else: ?>

    PHP Version is 5.3.27

  • Hi there – You’ve reached support for the free sites hosted at WordPress.com. Your site is a self-hosted installation of WordPress, available at http://wordpress.org/.

    To clear up any confusion, WordPress.com and WordPress.org are two different entities.
    http://support.wordpress.com/com-vs-org/

    You can find support for self-hosted/installed versions of WordPress here:
    http://wordpress.org/support/
    http://codex.wordpress.org/

    You might also try the support area of your theme author’s site.

  • The topic ‘Error in displaying images’ is closed to new replies.