Search Results for

    Show / Hide Table of Contents

    get_iv_image_url()

    Overview

    Use this function to get the Imagevault media url for a specific Imagevault media field.

    Parameters

    get_iv_image_url($field_object);

    • $field_object (array) (Required) The ACF field object

    Return

    This function returns the media url as a string

    Usage

    Example: Fetch a field object from an ACF Options page, get the image url and use it...

    <?php 
        $field_object = get_field_object('theme-image-1', 'option');
    
        $img_url = get_iv_image_url($field_object);
    
        echo $img_url;
    ?>
    
    In This Article
    Back to top (c) Meriworks 2002-2022