hi there! quick question. what would the php be to get the most recent single image with a specified tag? i could probably use a custom layout but i'd like to rotate it, so i need to build it into my theme.
thanks!
resolvedhi there! quick question. what would the php be to get the most recent single image with a specified tag? i could probably use a custom layout but i'd like to rotate it, so i need to build it into my theme.
thanks!
Try something like:
<?php echo do_shortcode("[photosmash gallery_type=tags tags='wedding cake' images=1 layout=Std_Widget]"); ?>
That might not be exactly it, but it should be close.
BB
There's a bug in 0.8.00 that causes the gallery to use the images per page instead of the images # in the shortcode, so that might give you some trouble.
BB
hmm. OK i'm not on 0.8 yet so i'll see if i can get it working and let you know. thanks!
FYI if anyone searches and find this, it works. Thanks Byron!
Welcome! Fixed in 0.8.01.