• Resolved mjacob14

    (@mjacob14)


    Hey Josh, I know you’re a prompt and super-helpful guy for this plugin’s users, so I hope you can help me out.

    I added one slide to my homepage and looked off of it as I created a custom slide template. Everything looked great. My problem began as soon as I added a second slide to my slideshow.

    Using this tag, I’ve set my homepage to display the slideshow “home”.

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "home", "metadata" ); } ?>

    This displays the metadata from one slide only, but no featured image, and no navigation. The inputs from my custom fields just sit there, but there’s no slideshow functionality.

    If I remove the “metadata” attribute, the slideshow displays and scrolls, but–obviously–without the custom fields that I want to appear.

    Here is the custom markup I’ve added to meteor-slides.php (above the closing .mslide tag, per your instructions). Unfortunately I’m working off a local server and can’t show you a live example, but this template and front-page.php and their respective stylesheets are the only two places I’ve been working:

    <div class="slide-text grid col-620">
    				<?php the_content(); ?>
    			</div>
    
    			<div class="slide-tagline">
    				<div class="tagline"><?php the_field('blurb'); ?></div>
    			</div>
    
    			<div class="action">
    				<a class="orange action-button" href="<?php echo get_post_meta( $post->ID, "slide_url_value", $single = true ); ?>" title="<?php the_title(); ?>"><?php the_field('button') ?> ➞</a>
    			</div>

    http://wordpress.org/plugins/meteor-slides/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Josh Leuze

    (@jleuze)

    Hi, the second parameter for the slideshow function is actually to add metadata for the slideshow script, it doesn’t add or enable the slide post or image metadata.

    If you don’t need to customize the slideshow’s settings, you can leave the metadata blank like this and it should load the slideshow fine:

    <?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "home", "" ); } ?>

    The custom fields you are adding to the slides should load either way, if they aren’t showing up, the first thing I would do is check the source code to see if they aren’t loading at all, or if they just aren’t displaying on the rendered out page, you may need to tweak the styling.

    Thread Starter mjacob14

    (@mjacob14)

    Hey, it worked! Thanks, Josh. I really appreciate it.

    Plugin Author Josh Leuze

    (@jleuze)

    No problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Conflict b/w custom fields and slides’ is closed to new replies.