Hi Lokesh,
You can try adding this snippet:
function generate_home_category( $query ) {
if ( $query->is_home() && $query->is_main_query() ) {
$query->set( 'category-name', 'affiliate-marketing, uncategorized' );
}
}
add_action( 'pre_get_posts', 'generate_home_category' );
Adding PHP: https://docs.generatepress.com/article/adding-php/#code-snippets
Replace affiliate-marketing and uncategorized with your categories.
This will show posts only from those categories. With your current structure, the images and titles are already showing.
If you’re referring to something else, let us know.