gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

[ Latest Posts block] Option to always show the [Read more ...] link

Open draganescu opened this issue 6 years ago • 9 comments

Is your feature request related to a problem? Please describe. In #20313 ( comment ) there was a discussion to have the block always show the link, even if:

  • the theme does not add it
  • the excerpt is not trimmed

Describe the solution you'd like An option in the Block Inspector that shows only if excerpt is selected as the post content to be displayed. When this option is set, the link always is displayed after the excerpt.

cc @raQai

draganescu avatar May 11 '20 13:05 draganescu

Also option to add custom class to "Read More" button would be useful.

jasomdotnet avatar Jun 09 '20 11:06 jasomdotnet

I agree that this would be a very good enhancement, particularly as I noticed that in a theme that does not display the "Read more" link on the front end – Twenty Twenty – the "Read more" link is still visible in the editor.

This creates confusion for the user, as the editor view does not match the front end.

Editor view example showing "Read more":

Edit_Page_‹Global_Styles_Demo—_WordPress

Front-end view of the same block

Latest_Posts_Block_–_Global_Styles_Demo

kathrynwp avatar Jan 05 '21 19:01 kathrynwp

I agree. This is missing and I have to use an external block to show posts with Read more. I like to use the blocks included in Wordpress. More futureproof :-)

thune avatar Nov 11 '21 18:11 thune

+1. I would love to see this feature. I initally thought its a bug that read more is missing.

lefavilla avatar Jan 20 '22 07:01 lefavilla

Should we, now that WordPress 5.9 is out there, migrate Latest Posts to be based on a Query Loop block? Adding more features to it seems to be pointless as most of what this does the other one does also, possibly better.

draganescu avatar Jan 31 '22 12:01 draganescu

Hello @draganescu I'm intrested to work on this issues. if is open then assign to me

ghorivipul97 avatar May 24 '23 09:05 ghorivipul97

Is this issue on a roadmap for 2025? If it isn't, what's the recommended best practice to show readmore links in the latests posts? My current workaround: add a custom excerpt to each post, and add a readmore link using HTML markup, e.g. <a href=... that works, although it's neither documented nor user-friendly for non-tech-savvy content editors.

openmindculture avatar Mar 02 '25 10:03 openmindculture

@openmindculture I'll let someone else respond to the roadmap question because I'm not sure about that, but have you tried just using the Query Loop block instead? I agree you shouldn't have to be adding Read More links manually with HTML! (Also not sure the Latest Posts block is being developed any longer, but again, I'll let someone else confirm that.)

kathrynwp avatar Mar 03 '25 14:03 kathrynwp

Is this still wanted? The two linked PRs (#22372, #51213) look abandoned. If adding the option to Latest Posts still makes sense, I'm happy to open a fresh PR: a toggle shown when the excerpt is displayed, which always appends the "Read more" link. If Latest Posts is in maintenance mode and Query Loop is the recommended path, we could close this instead.

dhananjaykuber avatar Nov 09 '26 11:11 dhananjaykuber