[theme-reviewers] Related Post

Konstantin Kovshenin kovshenin at gmail.com
Fri Nov 15 09:35:05 UTC 2013


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:
http://themes.trac.wordpress.org/browser/expound/1.8/functions.php#L218

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.


On Fri, Nov 15, 2013 at 8:09 AM, Justin Tadlock <justin at justintadlock.com>wrote:

> 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".
>
>
> On 11/14/2013 5:04 PM, Chip Bennett wrote:
>
>> WordPress core has no way to *define* "related" posts - which is the
>> critical difference between related and recent posts.
>>
>
> 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.
>
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>



-- 
Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20131115/ea81743a/attachment.html>


More information about the theme-reviewers mailing list