Recommended articles section
This might be a stupid question because I don't know any better, but on blogs/brochure websites where at the bottom of an article - where they have 3 or 4 recommended articles... how does that get coded?
Obviously it would depend on the implementation, but would it be unprofessional to just hardcode it in? Since I'm working with Astro, there's probably an easier way to do this as well (collections, just pull 3 random articles from a collection of articles, but that would change on every pageload so I don't think that would work all too well...)
2 Replies
Generally articles are tagged (they may be tagged privately) and then other articles are fetched based on the number of shared tags (the number of shared tags may be 0, as such you may want to shuffle posts with similar numbers of tags). If using Astro you should be fine just picking similar articles that are older than it. Depending on how regularly blog posts are created you could rebuild the article selection every once in a while.
It's also worth keeping track of tags used so that you can catch if a similar but different tag is used and also provide suggestions for tags to use to raise the number of tags to compare
Thanks, that makes sense!