WordPress.org

Support

Support » Plugins and Hacks » [Plugin: ZenphotoPress] Call specific/random thumbnail

[Plugin: ZenphotoPress] Call specific/random thumbnail

  • I’m wanting to pull a single specified thumbnail and or/random thumbnail from the album that the code below dictates – in place of my existing “../images/camera_icon.png”;

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    Is this possible and any idea how?

Viewing 5 replies - 1 through 5 (of 5 total)
  • A suitable workaround would be to set an image as the Featured Image- how?

    I’m wanting to pull a single specified thumbnail and or/random thumbnail from the album that the code below dictates – in place of my existing <?php echo $image[0]; ?>

    Code = http://pastebin.com/BnX909m1

    Is this possible and any idea how?

    I have to admit it’s not entirely clear to me what are you trying to do.

    Anyway, to pull a single image, I suppose you could try and call the ZenphotoPressUI::printBadge function (see classes.php) with a value of 1 for the $number parameter.

    You can see what I want/wanted to achieve here: http://www.squeelers.co.uk/photos/

    At the minute, that is ZenShow pulling a random image in. (Code here; http://pastebin.com/vcx7VAJA)

    Ideally, as you can see in the pastebin example, I would like to use ZenPhotoPress to pull in an image based on the “album”/”page”/”post” that is referred to.

    I don’t quite know if the plugin has the ability to decode that information though! I might just have to make do with what I have…

    I’m still a bit lost: do you want to rebuild a Zenphoto Gallery inside WordPress?

    If you want to use ZenphotoPress to pull photos inside a theme, I think your best bet is the printBadge function I mentioned above: that should give you a nice wrapper around ZenphotoPress calls to Zenphoto.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: ZenphotoPress] Call specific/random thumbnail’ is closed to new replies.