Skip to content

Homepage: Add filters to manually override specific posts  #516

Open
@benmay

Description

Most publishing businesses we work with like to reserve the premium realestate at the top of their site for a more manually curated list of articles that at "Home page editor" or otherwise, will manage throughout the course of a day/week.

The current homepage blocks make this a very difficult task to complete. The only workaround right now, is an editor has to go into the 3 cols on homepage and manually remove and re-add a "Specific Post" - but this is highly risky that they'll accidentally adjust an block setting or what not.

It also is difficult to transition a story from slot 1 to slot 2. In the past, we've built custom logic either directly, or even tools like ACF to enable authors to easily drag and drop articles, very easily and without risk of breaking the layout of the home page.

Example:

home_page_curation

We've currently tried this approach with Newspack - and the Block itself lacks a lot of filters.

What could be a very easy way to approach this would be if we could get some additional filters added to public static function build_articles_query( $attributes ) { so we could override those specific post IDs on render, and we could build a simple UI elsewhere to set the values of what post IDs should be shown.

Would be happy to submit a PR for the filters that could make this happen.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions