mubel
Forum Replies Created
-
Forum: Plugins
In reply to: [Meteor Slides] Different max number of slides for individual slideshowsSimpler even:
if (is_front_page()) { $meteor_options['slideshow_quantity'] = 3; } $meteor_loop = new WP_Query( array( 'post_type' => 'slide', 'slideshow' => $slideshow, 'posts_per_page' => $meteor_options['slideshow_quantity'] ) );Forum: Plugins
In reply to: [Meteor Slides] Different max number of slides for individual slideshowsSmall correction though, after short trial & error (if anyone else wants to use this):
if (is_front_page()) { $meteor_options['slideshow_quantity'] = 3; } else { $meteor_options['slideshow_quantity'] = $slideshow; } $meteor_loop = new WP_Query( array( 'post_type' => 'slide', 'slideshow' => $slideshow, 'posts_per_page' => $meteor_options['slideshow_quantity'] ) );Working now so thanks again! 🙂
Forum: Plugins
In reply to: [Meteor Slides] Different max number of slides for individual slideshowsBetter late then never! 🙂
Thanks a lot! Keep up the good work!
Forum: Plugins
In reply to: [Meteor Slides] Different max number of slides for individual slideshowsHi! Thanks for response!
If it was my own site I could do what you say.
The thing is that I’m making a site for a customer, and they will constantly add new slides to the gallery and also sometimes add new feature slides to the front page, but the front page should only show 3 in total.
To make it easy for them to manage, I wanted to limit the slideshow on the front page to only show the latest 3 slides even if they add a forth or more (as the max setting currently do, but for all slideshows). This way they won’t have to either change or delete the current 3 ones, as they will “pop out” from being viewed on the front page.
Of course it’s doable to instruct them to always delete the oldest one when they add a new, but this is something I as a developer would like to solve for them, so they won’t have to make potential “errors” just because I couldn’t create a good solution.
Is it not possible to maybe set “max-slides” as meta value or something, as it is with size and other variables?
Forum: Plugins
In reply to: [Meteor Slides] Different max number of slides for individual slideshowsBump!
Anyone know anything about this?