gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Show Featured Images on the “Latest Posts” block

Open kaispriestersbach opened this issue 7 years ago • 11 comments

I would like to build an AMP first website with the latest posts as part of my homepage.

Could you add a way to show the featured image on the “Latest Posts” block?

The page I need help with: https://staging.search-one.de/ - currently I can only display title, excerpt and the date.

kaispriestersbach avatar Sep 18 '19 16:09 kaispriestersbach

If we are moving forward with this, I can take over this and send a PR. :)

HardeepAsrani avatar Sep 20 '19 14:09 HardeepAsrani

I'm interested as well.

I just can't seem to figure out how to extend the core block "latest-posts" :/

franzikusderreine avatar Sep 23 '19 09:09 franzikusderreine

I'm interested as well and do some research on it .

First we request for rest api call for media through

https://example.com/wp-json/wp/v2/posts?_embed

in that query find the media list then we can do that.

mrmakadia94 avatar Sep 27 '19 09:09 mrmakadia94

Hello @swissspidy

Here i share one design request for the feature image

latest-post-feature-image-design-2

Needs Design Feedback

mrmakadia94 avatar Sep 27 '19 10:09 mrmakadia94

Why have three different panels when we can have them in a single panel? They’re mostly related. We can also think if we should give an option to choose image size?

We’ve done similar in our plugin and I’m happy to contribute here and take this further, if we decide to add option.

HardeepAsrani avatar Sep 27 '19 10:09 HardeepAsrani

Why have three different panels when we can have them in a single panel? They’re mostly related. We can also think if we should give an option to choose image size?

I would encourage thinking about grouping here and what is needed or having everything there.

karmatosed avatar Oct 10 '19 16:10 karmatosed

There is an existing draft PR for this: https://github.com/WordPress/gutenberg/pull/17151

mapk avatar Dec 27 '19 22:12 mapk

What can I use in the meantime? Are there plugins that offer such a block with featured thumbnail images?

strarsis avatar Feb 21 '20 21:02 strarsis

What can I use in the meantime? Are there plugins that offer such a block with featured thumbnail images?

My solution was to use a plugin used Getwid. I've found it to work very well, but it does come with many other features which you may, or may not appreciate. You could also try programming it yourself obviously, but I as I wanted to save time, I chose to use Getwid.

Hope this helps 😀

shaunguimond avatar Feb 21 '20 21:02 shaunguimond

@Tikio88: Apparently this feature had been already merged. I can find the thumbnails option for the recent posts block with latest Gutenberg plugin installed.

strarsis avatar Feb 21 '20 21:02 strarsis

@strarsis That's great, I'll need to check the new Gutenberg version!

shaunguimond avatar Feb 21 '20 21:02 shaunguimond