WordPress.org

Ready to get started?Download WordPress

Forums

Meta Slider
[resolved] Separate photo per event (8 posts)

  1. zardasht
    Member
    Posted 1 year ago #

    Hi Dears

    Please when I create some different gallery how can I show the newest gallery on the front page?

    Best

    http://wordpress.org/extend/plugins/ml-slider/

  2. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    You would need to create a new slideshow for each event and update your homepage shortcode with the latest event/slideshow.

    Regards,
    Tom.

  3. zardasht
    Member
    Posted 1 year ago #

    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.

  4. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  5. zardasht
    Member
    Posted 1 year ago #

    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.

  6. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    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,
    Tom

  7. zardasht
    Member
    Posted 1 year ago #

    If 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

  8. Matcha Labs
    Member
    Plugin Author

    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic