• Resolved ra00f

    (@raoof)


    Hello,

    Is there a way to display a specific number of random images in the accordion from a large set of images uploaded to the accordion back-end?

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    No such way available to display random images as you need, but you can drag and drop and change the image order from the back end please see screenshot

    https://s.nimbusweb.me/share/2436901/dbz4vhsv492gyd7s0sig

    Thanks

    Thread Starter ra00f

    (@raoof)

    Thanks for the reply.

    It would have been very useful if there’s such a feature so that we don’t need to load all the images to the site (and make the website slow). This will also give the user a new experience on his/her each visit to the site.

    Thanks again.

    Thread Starter ra00f

    (@raoof)

    I think, I can alter the class-wp-aas-script.php file and add the following code to achieve my target..

    
    $images = get_post_meta($gallery_id, $prefix.'gallery_id', true);
    <strong>shuffle($images);
    $count=1;</strong>
    .....
    foreach( $images as $image ): 	
    ....
    <strong>$count++;
    if($count==5)
    break;</strong>
    endforeach; 
    

    But, I believe this is not the right way as I may lose the edits in plugin update.

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Right, you can customize the plugin but your changes will lose when the plugin will update.

    Thanks

    Thread Starter ra00f

    (@raoof)

    Thanks for confirming this.

    One last question on CSS – not related to the topic (Hope it’s okay to ask here)

    In the wp-aas-public.css file, there’s the following rule at the end.

    @media only screen and (min-width:320px) and (max-width:568px) {
       .wpos-tab-slider .as-layer {
          display:none;
        }
    }

    May I know why this restriction in that specific width?

    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Everything is not possible to display in small resolution
    If we display everything in small width it will not look good its look Messy like this https://s.nimbusweb.me/share/2438991/l27325fpsp25ieng83ud

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Choose random images from the set of images’ is closed to new replies.