Separate photo per event
-
Hi Dears
Please when I create some different gallery how can I show the newest gallery on the front page?
Best
-
Hi,
You would need to create a new slideshow for each event and update your homepage shortcode with the latest event/slideshow.
Regards,
Tom.Thanks #Matcha Labs But I am using template include code inside footer.php also I use shortcode in category and is fine but about front page how can I update on front page without going to footer.php.
Hi, you would need to set up a ‘Latest Events’ slideshow and include that in your footer. There’s no special shortcode to pull out the latest slideshow (which I think is what you’re looking for)
Regards,
Tom.hmm Thanks my problem is some person in our website work on slideshow they are editor and they don’t have a permission to edit footer.php So I thought we can use your plugin without back to php files. Thanks for you.
Hi,
In your footer code, you could do something like:
$latest_slideshow = {find the latest slider ID (query the ml-slider post type)};
<?php echo do_shortcode(“[metaslider id={$latest_slideshow}]”) ?>
Regards,
TomIf you mean should be I put that code, I did. but show the error on the front page
Parse error: syntax error, unexpected ‘[‘, expecting ‘)’ in C:\Program Files\wamp\www\imckiraq\wp-content\themes\twentyeleven-child\footer.php on line 35
Hi, i’ve updated the post now. It is just psuedo code so you’ll need to work out how to find the latest slider ID. This isn’t something usually covered by free support sorry (I’m not sure if you have a pro license? If you do, email me), you should be able to work out how to find the latest slider with some googling – http://www.google.co.uk/search?q=wordpress+find+latest+post
(the post type for meta slider is ‘ml-slider’)
Regards,
Tom.
- The topic ‘Separate photo per event’ is closed to new replies.