How to get URL of image
-
Hi,
I am trying to get the URL of the image with this statement:
$custom_url = get_post_meta( $image, '_gallery_link_url', true );
but it is not working.
If I try this:$custom_url = get_post_meta( $image );
there is not such meta named as “gallery_link_url”.
Am I doing something wrong? Could you help me with this?
I want to use the URL in my own code.Thank you very much for your response.
Marek
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to get URL of image’ is closed to new replies.