Okay, lets try it again! :)
I will make an exemple them.
I had 5 galeries and was using the normal photosmash id=bla to get them on single.php and on the category.php:
galerie id=1 name->cup, related post 1
galerie id=2 name->fun, related post 2
galerie id=3 name->car, related post 3
galerie id=4 name->bus, related post 4
galerie id=5 name->lamp, related post 5
Them I changed the "id" for "name", so it would create new galleries automatic from now with the title name, something like that [photosmash name=$post_title].
So now even thought the post title was the same as their names cup, fun, car, bus and lamp PS didn't get those galleries it created 5 more with the same name and different id's like that (that being called from single.php):
gallery id=6 name->cup, related post 1
gallery id=7 name->fun, related post 2
gallery id=8 name->car, related post 3
gallery id=9 name->bus, related post 4
gallery id=10 name->lamp, related post 5
And when I put the shortcode [photosmash name=$post_title] on category.php it would either not show any gallery or create even another one, instead of getting the one that already existed with that name and related to that post like:
gallery id=11 name->cup, related post 1
Okay I don't know anymore if I am making myself clear or being even more unclear...
Did it help somehow?