Conflict b/w custom fields and slides
-
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>
- The topic ‘Conflict b/w custom fields and slides’ is closed to new replies.