Call the latest posts from a custom field group to be displayed on front-page

Okay, so you can paste this on your front page template.
I assumed that your $prefix is prefix and products page id is 11 and you want to print last 3 entries.

<?php $meta_entries_pre = get_post_meta( 11, 'prefix_repeat_group', true ); $meta_entries_int = array_reverse( $meta_entries_pre ); $meta_entries = array_slice( $meta_entries_int, 0, 3 ); if( ! empty( $meta_entries ) ) { ?>
    <ul>
        <?php foreach ( (array) $meta_entries as $key => $entry ) {
            $product_name = $product_description = $meta_link = '';
            if ( isset( $entry['product_name'] ) ) $product_name = $entry['product_name'];
            if ( isset( $entry['product_description'] ) ) $product_description = $entry['product_description'];
            if ( isset( $entry['product_image'] ) ) $product_image = esc_html( $entry['product_image'] ); ?>
                <li>
                    <h3><?php echo $product_name; ?></h3>
                    <p><?php echo $product_description; ?></p>
                    <p><img src="https://wordpress.stackexchange.com/questions/166948/<?php echo $product_image; ?>" alt="" /></p>
                </li>
        <?php } ?>
    </ul>
<?php } ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)