Support » Plugin: Meteor Slides » Meteor Slides & Custom Fields

  • Resolved phlppgrssr

    (@phlppgrssr)


    Hello,

    first of all: Thanks for this great Plugin!

    At the moment, I’m trying to integrate different slides to each Site/Post. For that, I’m using custom fields and the php-code of Meteor Slides. I use a custom field, where I enter the slug of the slider name:

    <?php if ( function_exists( 'meteor_slideshow') ) { meteor_slideshow( "<?php echo(get_post_meta($post->ID, 'slider-name', TRUE)) ?>", "" ); } ?>

    For any reason, it does not work. Does anyone know a solution for that?

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

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

    (@jleuze)

    You’re welcome! You can’t do PHP tags within PHP tags like that, just wrap the whole thing in tags.

    But I would also get the slideshow slug from the custom field and set it as a variable to be used by the slideshow function:

    <?php $meteor_slider_slug = get_post_meta( $post->ID, 'slider-name', TRUE );
    if ( function_exists( 'meteor_slideshow') ) { meteor_slideshow( $meteor_slider_slug, "" ); } ?>

    Works perfectly! Thanks!

    Plugin Author Josh Leuze

    (@jleuze)

    No problem!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Meteor Slides & Custom Fields’ is closed to new replies.