Support » Plugin: External Videos » [Plugin: External Videos] Is there an easy way to reverse the gallery thumbnails?

  • I was wondering if you could help me understand your plugin better? I would like to reverse the order of the gallery to show the oldest video post first. I tried changing the $arc_query to ASC instead of DESC, but that didn’t seem to do anything. I’m still pretty new to php and WordPress so I figured asking for help couldn’t hurt. Also this might be a nice feature to add in a future release.

    Your plugin is amazing and so far is almost exactly what I was looking for. Thank you for taking the time to make it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author silviapfeiffer1

    (@silviapfeiffer1)

    In the function external_videos_gallery in the file ev-shortcode.php you find the following:

    // extract the videos for the gallery
    $params = array(
    ‘posts_per_page’ => 20,
    ‘post_type’ => ‘external-videos’,
    ‘post_status’ => ‘publish’,
    );
    $old_params = $wp_query->query;
    $params[‘paged’] = $old_params[‘paged’];
    query_posts($params);
    // display the gallery
    display_gallery($width, $height);

    The query_post() function does all the leg work for you, see documentation at http://codex.wordpress.org/Function_Reference/query_posts . I think now you can solve it. 🙂

    Thank you. That was exactly the information I needed. Now I just need to remember to change it again whenever you update the plugin.

    Thank you!

    Follow up question… Now that I have reversed the order is there an easy way to reverse the older videos… newer videos links so they provide the correct direction as well?

    Updated: I found my own answer in the ev-shortcode.php it just didn’t jump out at me at first.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: External Videos] Is there an easy way to reverse the gallery thumbnails?’ is closed to new replies.