Bug #18411
closedNews not showing on home page
0%
Description
HI All,
I just noticed that the "latest news" section on the logged in home page is not showing any posts. See screenshot. Perhaps this is because the posts are older than ~ 6 months? Is this intended behavoir? I wanted to flag it in case this is a bug.
Thanks,
Laurie
Files
Updated by Boone Gorges over 1 year ago
- Category name set to Home Page
- Status changed from New to Resolved
- Assignee set to Boone Gorges
- Target version set to 2.1.9
Thanks for point this out, Laurie.
The Latest News Posts section works by fetching latest posts using the WP REST API, which returns a JSON object representing the posts. On one of the Commons news sites, the feedwordpress plugin was printing a "critical bug" notice, which was causing the JSON object to be invalid. I didn't dig deep into the FWP issue; it appears to have something to do with the parsing of a specific feed, which is certainly problematic but definitely doesn't mean that it should print a message on every pageload. I have silenced this part of FWP https://github.com/cuny-academic-commons/cac/commit/e5de1a3b85f705b262eda312aa6aac9b7d8543d9 and flushed the site transient, and the Latest News Posts section is now populating as expected.