Skip to content

image field warning  #138

@ah-polash

Description

@ah-polash

Hello
Thank you for the nice script.
When i am trying to retrieve the url of a image or a PDF file i am getting a warning like below.
Warning: Illegal string offset 'url' in C:\xampp\htdocs\development..............................................fileName.php

i have used below code to retrieve the url of the image.
$saved_data = get_post_meta($post->ID,'image_field_id',true); echo '<img src="'.$saved_data['url'].'">';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions