Unset first element of array that don’t know first item’s key value

I’m getting list of image using foreach, but I don’t want to display first image of array, but I don’t know how to make it works. Here my code:

$portfolio_gallery_image = get_post_meta( get_the_ID(), "portfolio_gallery_image", true );

<div class="folio-gallery grid-masonry clearfix">
    <?php
    foreach ( $portfolio_gallery_image as $key => $image ){
    ?>
        <a class="folio-item col-3 ndSvgFill grid-item" href="<?php echo esc_url($image) ?>">
            <img src="<?php echo esc_attr($image) ?>" alt="portfolio">
        </a>
    <?php } ?>
</div>

Really appreciate your help. Thank you.

Read more here: Unset first element of array that don’t know first item’s key value

Leave a Reply

Your email address will not be published. Required fields are marked *