Tagged: ,

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

    Hi, I am trying to code a slider wight the shortcode : how can I integrate images into slides ? Thnks

    
    $photos  = get_attachments_by_media_tags('media_tags=photos&post_parent=' . $post->ID);
    $arrPhotos=array();
    if (count($photos_portails))
     { foreach($photos_portails as $k=>$v)
           {
             $arrPhotos[]=$v->ID;
           }
      echo  do_shortcode("[av_fullscreen size='extra_large' animation='slide' autoplay='interval='5'][av_fullscreen_slide id='" . $v->ID ."][/av_fullscreen]");
     }
    #270700

    Hi!

    You should put av_fullscreen outside the loop:

    [av_fullscreen]
    foreach(...){
    [av_fullscreen_slide]
    }
    [/av_fullscreen]
    

    Regards,
    Josue

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.