Fabricatorz/fabricatorz.com — Issue #41: make a more complete query for updating the swatches on the main page
Author: rejon
Created: 2012-01-24 05:02:53+00:00
State: open

From previous issue, need to make a more complete query for updating the swatches on the main page

For now the homepage queries all the pages (on our site, a page is either a Project or Person), and displays them based on date published (an easy query) and then counts the number of posts whose category is the same as the name of the page.

It would be preferable to instead first query all pages/categories, then order them by the publish date of their most recent associated post. That is a more complicated query that I have not written yet. There is added complexity since Page == Category only by virtue of sharing the same name (URL slug). For whatever reason WordPress does not let pages have categories.

For now writers who want to appear first on the homepage should update the publish date of the page associated with the category of his/her post.