If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.

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


    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?



    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.