Galeria de imgens
-
Estou criando um tema que tera um portfolio com varios albuns de imagens, primeiro será exibido uma miniatura e quando clico nessa miniatura ele abri um light box com o album.
Meu código está assim.
<div id="page" class="bd-box"> <div id="containerGaleria" style="display:none;"> <a href="#" title="Fechar" id="btFechar">Fechar</a> <div id="slide"> <div id="slideItem"> <?php query_posts('category_name='.$categ.'&paged=$paged&showposts=30&orderby=date&order=ASC'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <img src="<?php echo get_post_meta($post->ID, 'imgGalery', true); ?>" alt="" /> <?php endwhile; else: ?> <?php endif; ?> </div> </div> <div class="descSlide"> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> </div> </div> <ul id="galeria"> <?php query_posts('category_name='.$categ.'&paged=$paged&showposts=30&orderby=date&order=ASC'); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <li> <a href="#" title="<?php the_title(); ?>"> <img src="<?php echo get_post_meta($post->ID, 'itemGalery', true); ?>" class="itemGalery" alt="" /> </a> <div> <span>2 IMAGENS</span> <h2><?php the_title(); ?></h2> <?php the_excerpt(); ?> </div> </li> <?php endwhile; else: ?> <?php endif; ?> </ul> <div class="fix"></div> </div><!-- #page -->
- O tópico ‘Galeria de imgens’ está fechado a novas respostas.