Show only posts from a specific category in the latest news section on the home page

Is there a way to get the home page to only display posts from a certain category? For example i want the homepage to display posts only from a category “Latest news”. Right now the template displays all my posts to the home page.

First find slug of your category (probably latest-news).

1. openĀ page-home.php
2. find this line:

$args['post_status'] = 'publish';

and below this line add this one:

$args['category_name'] = 'latest-news';

3. save

1