Automattic / newspack-blocks

Gutenberg blocks for the Newspack project.
207 stars 43 forks source link

Homepage Blocks: Most Popular #49

Open laurelfulford opened 5 years ago

laurelfulford commented 5 years ago

Add option to display articles by 'most popular'.

How should these be determined?

laurelfulford commented 4 years ago

Copying over details from a separate request for this, from @kn0wsnothing https://github.com/Automattic/newspack-plugin/issues/498:

Is your feature request related to a problem? Please describe. I'd like to be able to automatically highlight posts that are trending (ie, getting a high proportion of site traffic).

Describe the solution you'd like Add a setting the home page block to display trending posts.

Describe alternatives you've considered Manually setting the story.

adekbadek commented 2 years ago

From https://github.com/Automattic/newspack-blocks/issues/712:

Is your feature request related to a problem? Please describe. Many publishers want to show the most popular posts on their site. They can do so using Jetpack's Top Posts & Pages widget and associated shortcode but this provides very few options. The display of these posts is then also inconsistent with the rest of the posts on display.

Describe the solution you'd like When configuring a homepage posts block users will have a "Top posts" option, similar to the "Display specific posts" option that would remove the available filters and instead piggyback on Jetpack's query for grabbing top posts.

Describe alternatives you've considered Making a block in Jetpack that matches the options of the homepage posts block, but that might be unwanted duplication of the block options logic.

Aurorum commented 11 months ago

This is something which I'm working on in Automattic/jetpack#34153 - might be of interest? :) That still won't offer the same options/design that the Homepage Blocks do, but it might provide some inspiration.