A learned positional embedding prepares one vector for each position ("1st," "2nd," ...), learns its values during training, and adds it to the word embedding. Just as words are looked up in an embedding table, positions are looked up in a table too.
Position information is needed because scaled dot-product attention, the core of the Transformer, does not distinguish word order. Attention only computes a weight for each pair of words, so on its own it treats "the dog chases the cat" and "the cat chases the dog" as the same bag of words.
This method was used by Gehring et al. in 2017 in a convolutional translation model (ConvS2S), and the Transformer paper of the same year used it in a comparison with sinusoidal positional encoding. Since then, many representative models such as BERT, GPT, and ViT have adopted it.
The figure at the top of the article shows where the position information is injected. The left side is the flow up to the attention layers: the positional embedding is added only once, at the input. The right side is the positional embedding table, from which as many rows as the sentence length are looked up starting from the top. The articles on relative position representations, RoPE, and ALiBi use figures with the same layout, so the injection points can be compared side by side.

