Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #9599

    Hi,

    I’d like to get the URL of the (first) portfolio image that is loaded in the slider so I can set my facebook image for the like button I’ve made. I’ve been looking around the code but can’t find it. Any help?

    #65238

    Hey,

    you can use following code to get the image:

    global $post;
    $slides = avia_post_meta($post->post_id, 'slideshow');
    if ($slides){
    $postimage = avia_image_by_id($slides[0]['slideshow_image'],'thumbnail');
    }

    echo $postimage;

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘get the first shown image url from slider’ is closed to new replies.