Currently I'm working on a website, where there are posts and I intend to give the possibility the user to jump to the adjacent posts with a simple link pointing to them.
It will be with
First I wanted put these in the
the_content filter hook, but in another question of mine Mark Kaplun informed me that this is a bad idea because:
Just don't do it. The the_content filter supposed to automatically amend the content, while what you are trying to do is to add a decoration, not a content. You are going to hurt in very unexpected ways depending on where exactly you set the filter and how well you remove it after your intended use. (for example, place it in a global scope and your excerpts might get the links)
If you have to manipulate the content being displayed by adding a decoration to it, do it in the theme, no other place.
That what I try to do, but my question is: Exactly where I have to put this type of decoration not to cause any unwanted interaction?