WordPress.org

Ready to get started?Download WordPress

Forums

VideoGall
how to change the order the videos are in (8 posts)

  1. willian.roberg
    Member
    Posted 1 year ago #

    Hello, my newest videos show up at the end of the 2 pages, how do I change it so it show up at the start of page 1?

    http://wordpress.org/extend/plugins/videogall/

  2. Nick
    Member
    Plugin Author

    Posted 1 year ago #

    I will enable sorting of the videos in the next update

  3. willian.roberg
    Member
    Posted 1 year ago #

    I just want to reverse the order of the videos, meaning I want the newest video to show at the start of page 1, not at the end of the pagination, can you just point me to where the query is made so I could reverse it?

  4. dellos
    Member
    Posted 1 year ago #

    Beafore upgrade there was good order from newest to last, but I see that the plugin is goin in good direction, waiting for upgrade wyth the reverse order. When will it be avalible ??

  5. nextart
    Member
    Posted 1 year ago #

    Hi great plugin... i'm waiting for upgrade with the reverse order . When will it be avalible ??
    thanks
    bye from Italy
    Maurizio

  6. willian.roberg
    Member
    Posted 1 year ago #

    Ok guys, I just added one line of code do reverse the order:

    on the file: videogall/videogall.php

    look for:
    global $videogall_options, $total_videos;
    $video_list = get_option('videogall_videos');

    and add this right after it:

    rsort( $video_list );

    this will reverse the order.

  7. mandraagora
    Member
    Posted 1 year ago #

    I tried adding this new line, but I keep getting a syntax error. Can you please enter the line EXACTLY as it should appear in the file?

  8. mandraagora
    Member
    Posted 1 year ago #

    Nevermine, I got it.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.