ahh sorry mate,
didn’t realize it wasn’t the end until you said so.
anyway, here it is in full:
https://pastebin.com/QRg0y1UE
i’ll give yours a try.
thanks a lot
UPDATE:
The else echo ‘no related posts’ didn’t work.
probably because you didn’t have the full code at the beginning to work with. my bad.
would be very grateful if you could correct my mistake.
thanks =)