Hello,
how can I edit the content-404.php to show the most recent posts after the search bar? In the same style as on the archive pages. Is there maybe a shortcode or method i can use?
why not just use a GP Block Element, to create your own 404 template, and then use a GB Query Block or the Core Latest posts block to display the posts ?
Otherwise you will need to create a custom loop in PHP.
Your alternative would be to look at the themes archive.php and use that as a basis for your child theme 404 template. As that already has a loop for you to work with.