Page numbering in Writer

When I try to use page numbers, I only get the words ‘page number’ inserted in a header or footer

Try View Field Names the toggle is Ctrl F9
If this helps then please tick the answer (:heavy_check_mark:) …and/or show you like it with an uptick (∧)

Please improve your answer by explaining the toggle about “Field Names”. This is much better for newbies than the bare solution.

C’mon, the answer is the best one for someone who did not even STFW before asking.