2012-06-06, 01:58:05
andyash Wrote:andyash Wrote:mvlcek Wrote:(% gallery name=painting tags="2012, 2011, 2010" %)
(% gallery name=painting tags=2012,2011,2010 %)
Neither works.
Any solution for this?
Oh, it does work (like designed) ;-)
It gives you all images with all the tags 2012, 2011 and 2010.
I concentrated on the technical aspect, but ignored the functional part of your question :-(
There is no easy way to show all images having one of multiple tags.
You could use the (rather undocumented) image-veto filter by registering a filter function (in a plugin) like
Code:
function filter_images($name, $filename, $tags) {
if /* TODO: one of those tags */ return false;
return true;
}
Otherwise you could only put multiple instances of the gallery on the page like:
Code:
(% gallery name=painting tags=2012 %)
(% gallery name=painting tags=2011 %)
(% gallery name=painting tags=2010 %)