Home Forums Theme support Eastend: Gallery order?

This topic contains 8 replies, has 2 voices, and was last updated by  7Theme Support 9 years, 4 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • Anonymous

    Is there any way to reorder the gallery besides changing the dates on all the posts? I’d actually like to make it a random order if possible.


    what kind of gallery you mean? Portfolio or Quickgallery? I think you mean the porfolio right? Please have a look at this plugin, I think that’s what you are searching for:



    Yes, sorry. I meant the portfolio. Unfortunately, that plugin only seems to work for regular posts, not for the portfolio posts. Any other ideas?


    I had to make this change in posttype-portfolio.php in order for the plugin to work: http://wordpress.org/support/topic/re-order-option-only-showing-up-for-normal-posts-not-custom-post-types

    Thank you!


    Ok, that plugin allows me to reorder them in a set order, but I would like them in a random order each time the page is loaded. I found info that I need to use ‘orderby’ => ‘rand’ for my sort order, but I’m not sure where I should put this info. I tried updating the “query_posts(array” in posttype-portfolio.php, but no results. Any help would be greatly appreciated.

    Thank you!

    Hi, do you use a shortcode or a page template to display the portfolio? Then we can tell you what file and which line in the file you have to edit…


    Page template => Portfolio sortable


    Was able to get this to work.

    Edit: Eastend: Portfolio sortable Page Template (portfolio-sortable.php)

    Find: query_posts(array( ‘post_type’ => ‘portfolio’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page ));

    Change to: query_posts(array( ‘post_type’ => ‘portfolio’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page, ‘orderby’ => ‘rand’ ));

    Thank you for your help!

    Ok, great. Please let me know if you need our help.

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.