0

I am trying to achieve to following the desing with the latest posts block:

enter image description here

On the left is the features image, on the right the categories, title, excerpt and a read-more button.

This is what I got so far:

enter image description here

My issue is that title and excerpt are not wrapped in a div and therefor placed in a row when using display: flex. Is there a possibility to wrap title <a> and excerpt <div> in a div?

enter image description here

Furthermore I am curious if there is a possibility to display the category in the latest posts bock. There is no such option for that block:

enter image description here

Is it possible to add this feature via the functions.php?

enter code here
2
  • 2
    if you instead use a query block, you can composer its contents with featured image and title blocks, and use the layout options of a group block or columns to get what you want without writing any code
    – Tom J Nowell
    Commented Aug 17, 2022 at 11:44
  • @TomJNowell that sounds like a great idea. I'll try that :)
    – Marzii
    Commented Aug 17, 2022 at 12:44

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.