<div dir="ltr">Great question, and I think it's perfectly fine if you can handle related posts in your theme without the overhead of extra tables, indices and heavy search algorithms. Here's what I did for Expound: <a href="http://themes.trac.wordpress.org/browser/expound/1.8/functions.php#L218">http://themes.trac.wordpress.org/browser/expound/1.8/functions.php#L218</a><div>
<br></div><div>By default, the related posts section outputs posts from the same category, ordered by date, simple as that. But it also looks for the popular YARPP plugin and uses that instead, if it's active.<br><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Nov 15, 2013 at 8:09 AM, Justin Tadlock <span dir="ltr"><<a href="mailto:justin@justintadlock.com" target="_blank">justin@justintadlock.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
On the general subject of "plugin territory", there's no need for us to go overboard.  There are things that are clearly plugin territory (post types, taxonomies, analytics, etc.).  But, there is such a thing as a gray area, an area where both themes and plugins can handle the functionality without that functionality being labeled as only "plugin territory" or only "theme territory".<div class="im">
<br>
<br>
On 11/14/2013 5:04 PM, Chip Bennett wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
WordPress core has no way to *define* "related" posts - which is the critical difference between related and recent posts.<br>
</blockquote>
<br></div>
WordPress core has many ways to define related posts.  Categories, tags, and post formats immediately come to mind.  That's the purpose of a taxonomy.  It allows you to group related things.  The user has clearly defined this relationship by choosing a term from one or more of those taxonomies.<div class="">
<div class="h5"><br>
______________________________<u></u>_________________<br>
theme-reviewers mailing list<br>
<a href="mailto:theme-reviewers@lists.wordpress.org" target="_blank">theme-reviewers@lists.<u></u>wordpress.org</a><br>
<a href="http://lists.wordpress.org/mailman/listinfo/theme-reviewers" target="_blank">http://lists.wordpress.org/<u></u>mailman/listinfo/theme-<u></u>reviewers</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Konstantin
</div></div></div>