Feature #14256

Design/UX #13998: Homepage Redesign

"Latest News" feed

Added by Colin McDonald 10 months ago. Updated 14 days ago.

Priority name:
Category name:
Home Page
Target version:
Start date:
Due date:
% Done:


Estimated time:


The Latest News section of the homepage redesign should include the latest three posts collectively from:


#1 Updated by Boone Gorges 3 months ago

  • Status changed from New to Testing Required

Here's background on how this is built:

- The list of sites that are the source for Latest News is defined here
- On the home page, the latest items from these source sites is pulled using the WP REST API. See I tried doing this with switch_to_blog(), but that function isn't sufficient - things like fetching post thumbnails failed because of limitations in blog-switching and persistent caching. I made a modification to the /posts/ endpoint on the source sites so that the post thumbnail is included in the payload
- Because we are using Featured Images, it's critical that items on in.commons and news.commons always have Featured Images. Scott, I've added you as a watcher so that this can become part of the team workflow.
- The API calls are cached, and the cache is invalidated when a new post appears on one of the source sites.

#2 Updated by Boone Gorges 3 months ago

Quick follow-up: The REST API mods were necessary for development testing, so I had to deploy them prematurely to the production site. So they can be found in the 1.18.x branch.

#3 Updated by Boone Gorges 15 days ago

  • Status changed from Testing Required to Staged for Production Release

#4 Updated by Boone Gorges 14 days ago

  • Status changed from Staged for Production Release to Resolved

Also available in: Atom PDF