There is a logic error in your code. You are loading 5 posts, but then within the loop you are checking for the value of ‘featured_news’.
If none of the 5 latest posts have this selected, then no HTML will be rendered.
What you indented to do was to query the posts with the a ‘featured_news’ value of 1. You can do this by following the tutorial here:
To sum up, you want to query posts that have the custom field value, then remove the if statement completely
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We've just released ACF 5.12.3 with a security fix to prevent arbitrary file uploads to forms with ACF fields.— Advanced Custom Fields (@wp_acf) July 14, 2022
Now that we've released this update, we recommend updating your sites as soon as possible.
© 2022 Advanced Custom Fields.