WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[resolved] Sort by relevance but only for posts within the last year (4 posts)

  1. Scorpiono
    Member
    Posted 1 year ago #

    Hi folks,

    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.

    Thank you
    -Sergiu

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    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?

  3. Scorpiono
    Member
    Posted 1 year ago #

    Hi Mitcho,

    I would only want posts written after 2012 to show up in "related posts"

    Thanks!
    -Sergiu

  4. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 1 year ago #

    I see. Currently this would require some custom code. If you are interested, I suggest you look at the following information on custom templates:

    http://mitcho.com/blog/projects/yarpp-3-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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic