Yes, it is dynamic and I can’t type it manually.
I have a gallery. This gallery consits of sevaral pages (1, 2, 3 …). On each page I want to have 5 links to some posts (link is a gellery item). But I can’t write all links on each page manually. Instead of doing so I get the post ID’s from some file. This file can contain only ID’s or permalinks and can’t contain titles of pages (if it could the would be no problem).