@LongDong foreach works with lists, but @UserTrue suggested the option of how to take account strings from resources multiple times in 1 thread.
resource is not a list.
Add for-next loop at beginning,
Embed rest of code in that loop and add
[[CYCLE_INDEX]] to {{link fo category}} like this >
{{link fo category}}[[CYCLE_INDEX]]