<a href="<?= $recipe->get_absolute_url() ?>" class="daily-meal hover-anim">
    <div class="meal-img">
        <img src="<?= $recipe->get_image_url() ?>" alt="meal-img">
    </div>
    <div class="daily-meal-info">
        <div class="daily-meal-title">
            <h3><?= $recipe->field_title ?></h3>
            <span class="meta"><i class="fa-regular fa-clock"></i> <?= $recipe->field_estimated_time ?> mins to make</span>
        </div>
        <div class="daily-meal-ingredients">
            <ul class="ingredients-list">
                <?php for ($i=0; $i < count($ingredients) && $i <= 6; $i++): ?>
                <li><?= $ingredients[$i]->ingredient_name ?></li>
                <?php endfor; ?>
            </ul>
        </div>
    </div>
</a>