2012-06-06, 19:12:04
mvlcek Wrote:How do I create the function? I am not a programmer. The reason I want to avoid usingandyash Wrote:andyash Wrote: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
You would need to store the wanted years in a global variable.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 %)
Code:
(% gallery name=painting tags=2012 %)
(% gallery name=painting tags=2011 %)
(% gallery name=painting tags=2010 %)