Before you ask please READ THIS

Any idea for "randomizing" the order the albums are being displayed in the album list?

edited March 2013 in Hypershot Posts: 65
Hi :-)

As far as I know (and read around this forum) the only way to change the order the albums are being displayed is to change the date accordingly. Do you know how I could modify the album dates automatically in such a way the albums are being displayed in a "shuffle mode" within the album list page? I think the front page is too static and visitors do not necessary scroll down to discover the other albums... mostly the albums from the top are being viewed (lazy visitors ? ;-)).

Also can you please precise the "start album" property. When I change it, the display order remains the same but it seems maybe that the chosen album is being loaded first (place remains the same). Is it the normal behaviour of this functionality or a personal setting/caching stuff is preventing this functionality to work?

Thanks for your feedbacks on this:-)

Kind Regards,

Comments

  • AirAir
    Posts: 10,970
    Hello.

    Start album is only used in Albums list in slider theme. On this album slider will be centred after page load.

    About randomizing go to albums-list.php line~25 change
    
    $args = array(
            'posts_per_page'      => $per_page,
            'offset'              => $offset,
            'post_type'           => CUSTOM_POST_TYPE,
            'post_status'         => 'publish',
            'ignore_sticky_posts' => true,
            'meta_key' => '_background_only',
            'meta_value' => '0
        );
    to
    
    $args = array(
            'posts_per_page'      => $per_page,
            'offset'              => $offset,
            'post_type'           => CUSTOM_POST_TYPE,
            'post_status'         => 'publish',
            'ignore_sticky_posts' => true,
            'meta_key' => '_background_only',
            'meta_value' => '0',
            'orderby' => 'rand'
        );
    With regards.
  • You AIR the best ;-)
    That's exactly what I was looking for, thanks!
  • Hi.

    I need the same random, but for "Bricks style" Album of Hypershot theme.
    Because all of my album pictures are on the same place each time U opens the site.

    Please help.
  • AirAir
    Posts: 10,970
    Hello,

    You can drag & drop photos in album to change order. Make it auto random is bigger task.

    With regards.
  • Posts: 38
    I think you're begging for the already provided solution.
    You misunderstood each other or it's me ?

    The provided code shuffles album's order in bricks mode right ?
    Combobreaker isn't asking for randomizing pictures in an album but exactly what was already explained. My 2 cents.
  • AirAir
    Posts: 10,970
    I think that ComboBreaker asked for single Album view, and earlier explanation was for Albums list :-) Again one letter difference :-)

    With regards.
Sign In or Register to comment.