[Plugin: Meteor Slides] Questions: how to remove navigation for a single slide, how to recursive
-
I have two tricky questions:
1) How can I automatically hide the navigation when only a single slide is in the slideshow?
2) If no matching slideshow slug, what would be the method to “look back in the page ancestry” and display the topmost ancestor’s slideshow instead? I am looking into making “section” slideshows, if that makes sense. Slideshows that display on every page in a “Section” – example: all pages and sub pages in the “about us” section of a website.
My current code displays a slideshow based on page slug:
if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow($post->post_name, "width: 1024, height: 658" ); }
I believe we should need to integrate something based on this, but I cannot quite get it:
echo get_page(array_pop(get_post_ancestors($post->ID)))->post_title;
Thank you!
- The topic ‘[Plugin: Meteor Slides] Questions: how to remove navigation for a single slide, how to recursive’ is closed to new replies.