Help!!! Inline Fancybox post gallery won't work
-
Here’s the link to my inline Fancybox post gallery: https://econ.com.sv/?page_id=10
When one click on a post, it show the post content, but when you click on the next arrow two times, it just crash! Additionally, when I click on other post, it show only the first post!
Here’s my code
<?php if ( $the_query->have_posts() ) : ?> <?php // the loop while ( $the_query->have_posts() ) : $the_query->the_post(); ?> <div class="proyectpost"> <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <div class="innerpost"> <div style="display:none" class="fancybox-hidden"> <div id="post-<?php the_ID(); ?>"> <div class="postthumbnail <?php echo $custom_values; ?>"> <?php the_post_thumbnail(); ?> </div> <div class="posttitle"> <h2><?php the_title(); ?></h2> <span><?php echo get_post_meta($post->ID, 'location', true); ?></span> </div><!-- .entry-header --> </div> </div> <a href="#post-<?php the_ID(); ?>" class="fancybox-inline" rel="myGallery" title="Permanent Link to <?php the_title_attribute(); ?>"> <?php // Get post meta that is already set $custom_values = get_post_meta($post->ID, 'en_proceso_class', true); ?> <div class="postthumbnail <?php echo $custom_values; ?>"> <?php if ( has_post_thumbnail() ) { // check if the post has a Post Thumbnail assigned to it. $image_src = wp_get_attachment_image_src( get_post_thumbnail_id(),'full' ); echo '<img src="' . $image_src[0] . '" width="100%" />'; } ?> </div> <div class="posttitle"> <h2><?php the_title(); ?></h2> <span><?php echo get_post_meta($post->ID, 'location', true); ?></span> </div><!-- .entry-header --> </a> </div> </article><!-- #post-## --> </div> <?php endwhile; ?>
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Help!!! Inline Fancybox post gallery won't work’ is closed to new replies.