Support » Plugin: Yet Another Related Posts Plugin (YARPP) » Sort by relevance but only for posts within the last year
4 years ago
Fantastic plugin, easy to customize etc.
I’m running a blog with over 900 articles spread across 3 years.
I’d like YARPP to display “Related posts:” but only for posts in 2012+
I imagine this is something programmatic, can someone guide me?
The reason I need this is because the majority of the posts prior to 2012 have no featured images.
Do you mean you want to have only 2012 posts show up in “related posts”? Or do you mean you only want to show “related posts” for your more recent posts?
I would only want posts written after 2012 to show up in “related posts”
I see. Currently this would require some custom code. If you are interested, I suggest you look at the following information on custom templates:
The idea would be to have a template which checks whether the post is from 2012+, and display the link based on that. I hope that helps.