• Resolved jb2021

    (@jb2021)


    Hi,

    I am so impressed and grateful for your kind assistance and for changing the code for me. The random order for the gallery works perfectly but unfortunately there are some glitches with other functions.

    You can see my test gallery at the link I sent you by email. I don’t want to post it publicly before the site is ready.

    The problems I found with the customized plugin:

    1. When you click on an image, the description that opens doesn’t match the image. For example: the images are in random order, but the description belonging isn’t the right one. The images and descriptions get mixed up.

    2. For most of the images the description is off and without the image (please see screenshot 1 and 2 in my email).

    3. The thumbnail images in image description are not in random order. If possible, I’d rather not have thumbnails there at all.

    4. In the example on my site, there are currently two rows of images. When I click on any of the images in the first row and close the description a high row remains empty, i.e. the row below does not align with the row above after closing the description as it does in your original plugin.

    Can you please look into it? Thank you!

    Kind regards,

    JB

    • This topic was modified 3 years, 3 months ago by jb2021.
Viewing 1 replies (of 1 total)
  • Plugin Author totalsoft

    (@totalsoft)

    Hello, dear jb2021.

    Thank you for contacting us and for reporting your problem.

    To solve your problem, edit our Total-Soft-Portfolio-Widget.php file. Find code

    $TSoftPort_ElGrid_Images = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM $table_name6 WHERE TotalSoftPortfolio_IA = %s and Portfolio_ID = %s order by id”, $TotalSoftPortfolioAlbums[ $i ]->TotalSoftPortfolio_ATitle, $Total_Soft_Portfolio ) );

    Please edit the code and write like this.

    $TSoftPort_ElGrid_Images = $wpdb->get_results( $wpdb->prepare( “SELECT * FROM $table_name6 WHERE TotalSoftPortfolio_IA = %s and Portfolio_ID = %s order by RAND()”, $TotalSoftPortfolioAlbums[ $i ]->TotalSoftPortfolio_ATitle, $Total_Soft_Portfolio ) );

    Have a good day!

    Sincerely, Total-Soft

Viewing 1 replies (of 1 total)
  • The topic ‘Custom code adjustment for random order of images not working properly’ is closed to new replies.