Archived topic
Post preview in the archive page looks different than in the recent posts block
3 replies · Started by webmasterscientists4future-org on February 9, 2022
In the archive page, the excerpts contains formatting and links. These are removed in the latest posts block. The different presentation of the same content is unsightly and confusing. How can I keep the formatting and links in the excerpts of the latest posts block?
Examples:
Test page using the „latest posts“ block:
https://info-de.scientists4future.org/test-page-latest-posts-block/
Same category displayed as archive page:
https://info-de.scientists4future.org/category/audio-video/audio/interviews-for-future-podcast/
Thanks in advance
Marion
Hi there,
the Latest Posts block is built into WordPress, and it does not use templates like the theme does, so its not possible to add/remove/change its display, at the most we can provide some CSS to help with the styling. Let me know if you need assistance with some CSS.
Thank you - but CSS won't work without tags to operate with and can't restore links. I guess i have to override the Wordpress function that creates the excerpt. It would be helpful to see the code that is used for the archive page - where do I find that in generate press pro?
Have you tried using the Query Loop Block ?
https://wordpress.org/support/article/query-loop-block/
It has a lot more controls. That may display HTML in excerpts.