I was researching this question and found this answer
But (1) I don't know where to place this code (assuming it is current) and (2) would it be the same for both pages and posts.
put on hold as off-topic by Mark Kaplun, birgire, Johannes Pille, Pieter Goosen, mrwweb yesterday
This question appears to be off-topic. The users who voted to close gave this specific reason: