Skip to content

v1.10.0 - News Grid module

Choose a tag to compare

@ArsNovaSingers ArsNovaSingers released this 21 Aug 17:33
· 1 commit to main since this release

Adds a News Grid module and extends Project Modules to the front page.

News Grid

A blog/news band with its own markup and its own grid CSS. Fields: heading, how many posts, columns (2/3/4), excerpt length, show images, show dates, button label and link, background — plus the standard "Hide this module" toggle.

It deliberately does not lean on core's wp-block-latest-posts styling. That block's grid collapsed to full width on the live home page on 2026-08-21 with the page markup unchanged and no way to correct it from the page. Owning the markup and the stylesheet means a layout change is ours to make.

The "Read More News" button uses core's own wp-block-button__link classes rather than a new one of ours, so it keeps matching every other button on the site — including the home page's navy-pill-to-gold-on-hover rule.

An empty blog renders nothing for the public and an explanation for logged-in editors, rather than a heading floating over emptiness.

Modules now run on the front page

New anspm_page_has_modules() — project template or the front page — replaces the direct anspm_is_project_page() calls in the three places that must agree: the ACF field group's location rules, the the_content filter, and the stylesheet enqueue. ACF decides where the panel appears; that helper decides where modules render. A page you can fill in but that never draws is exactly how the Content Blocks layouts died.

Note for whoever ships the rest of the Home migration

Modules append after page content, so while the home page still holds its blocks any module lands at the bottom. Home is migrated by building all its modules, populating them on staging, then stripping the blocks — not incrementally on live.