About this topic

  • Posted by Laurence 1 year ago. There are 4 posts. The latest reply is from byron.
  • This topic is not resolved
  1. Hello !

    First of all, thank you very much for your great great plugin ! I imaging it is a lot of work for you ! Thank you again.

    I am creating a website where people can upload and create galleries. Your plugin is wonderful for this. But I am using a theme where, on the first page I need to have an image in the post : http://www.fotoclubilforte.it/foto/index.php.
    I don't find the way to insert automatically the last photo of the gallery at the top of the post. I don't know if I have to change the theme or your plugin ?

    Thanks very much for your help !!

    Laurence

  2. You're welcome! And yes...a lot of work, but fun.

    To place the last image at the top of your front page, if you're using a Static page for your front page, you can just add this shortcode to the top of it in the Edit Page page of Admin:

    [photosmash gallery_type=recent images=1 layout=Std_Widget]

    If you need to limit it to draw the image from a specific gallery, just add: where_gallery=## (where ## is the Gallery ID) into the shortcode like:

    [photosmash gallery_type=recent images=1 layout=Std_Widget where_gallery=2] or whatever gallery ID you need.

    If you're not using a static page, you would need to do some work on your theme. The best method would be to have a Widget box where you want the image to show. Then you could use the PhotoSmash Widget (Appearance / Widgets in the WP Admin menu).

    If you don't have a Widget box where you want the image, you insert some php code:

    <?php echo do_shortcode("[photosmash gallery_type=recent images=1 layout=Std_Widget where_gallery=2]"); ?>

    Hope that helps.
    BB

  3. Thank you very much for your response. Unfortunately, it's too complicated for me ... so I changed idea But I am sure that the thing you gave me here will be useful for the others ! Now, I have an other problem. I make a new post for this one ...

    Thanks again !

  4. No problem.
    BB

RSS feed for this topic