Hi,
I'm looking for a way to add a related posts section to my site without using a plugin.
The functionality I'm looking for are:
1. Relation by tags
2. Exclusion of specific categories
3. Displaying of posts not older than a specified time frame
I'm currently using the following code:
[Code moderated as per the Forum Rules. Please use the pastebin]
I don't understand PHP very well so I don't know how to edit it to achieve what I need or how this code works exactly. Does it compare more than one tag? Does it find the posts with the most related tags and display them in descending order of amount of related tags by date?
If anyone can provide me with the code I'm looking for or tell me how to edit this existing code, I'd be very grateful.
Thank you.
V