• 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?

    https://www.ads-software.com/plugins/meteor-slides/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hafman

    (@hafman)

    An Update: Adding links to the slides makes the custom fields appear.

    Plugin Author Josh Leuze

    (@jleuze)

    Hi, there aren’t any changes is 1.5.3 that should cause this, just a few minor styling tweaks.

    I can’t tell what the issue is from this code snippet. Could you post the full contents of your custom slideshow template on Pastebin or as a gist? Also, could you post link to the page you’re working on so I can see the results?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom field shows on first slide only’ is closed to new replies.