• Resolved zofie86

    (@zofie86)


    Thank you for a very nice plugin.

    I have encountered a problem i don’t know how to fix.
    I am doing WordPress page where i loop the different subpages and with every subpage I wan’t to show a different slideshow.

    The idear is to make different slideshows and name them exactly the same the subpage and with the same slug as well. Then based on the slug I would retrieve the slideshow in the loop. The only thing is that is shows the same slideshow for each subpage…

    Here is my code:

    <?php
    									global $post;
        								$post_slug=$post->post_name;
    									// make the slug into the id
    									?>
    				                    <div class="subpage-text">
    				                    <h3> <?php the_title(); echo $post_slug; // I echo, to make sure i got the right slug ?></h3>
    
    				                     <?php the_content(); ?>
    									</div>
    
    				                    <div id="slideshow-lightbox" class="lightbox hide fade"  tabindex="-1" role="dialog" aria-hidden="true">
    				                    	<div class='lightbox-content'>
    				                               	<?php if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow( "$post_slug", "" );}?>
    				                        </div>
    				                	</div>
    
    				                	<a href="#slideshow-lightbox">Open Lightbox <?php echo $post_slug; ?></a>

    [Moderator Note: Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]

    Unfortunately I cant give you a like to my site because i am currently only developing locally..

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

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get slideshow based on page slug’ is closed to new replies.