Custom field shows on first slide only
-
I have a custom field set for each slide
I’ve added the custom field in the necessary part(s) of a customised meteor-slideshow.php as follows…<div class="mslide mslide-<?php echo $meteor_count; ?>"> <?php // Adds slide image with Slide URL link if ( get_post_meta( $post->ID, "slide_url_value", $single = true ) != "" ): ?> <div class="slidetext"><a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_field('slide_text'); ?></a></div> <div class="slimage"><a href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_post_thumbnail( 'featured-slide', array( 'title' => get_the_title() ) ); ?></a></div> <?php // Adds slide image without Slide URL link else: ?> <div class="slidetext"><?php the_field('slide_text'); ?></div> <div class="slimage"><?php the_post_thumbnail( 'featured-slide', array( 'title' => get_the_title() ) ); ?></div>
This code works perfectly with Meteor Slides 1.5.1
In the latest version it’s showing the custom field for the first slide only. If i put the_title() in after the endif as described in the tutorial HERE The titles all come up perfectly.
Are there some changes in version 1.5.3 worth knowing about?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Custom field shows on first slide only’ is closed to new replies.