• Resolved xxaimsxx

    (@xxaimsxx)


    Hello!

    Found the file class-foogallery-albums.php and for public function galleries() I wanted to update it so that it would be sorted a certain way. I got to work BUT how do I go about replacing it through my child theme’s function.php? So that way in case the plugin needs an update, my code won’t be affected?

    https://www.ads-software.com/plugins/foogallery/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter xxaimsxx

    (@xxaimsxx)

    Thanks Adam, I saw that but no idea how to use it. I don’t delve much into php at all so this is a bit new to me.

    Plugin Author bradvin

    (@bradvin)

    Hi there,

    To sort your galleries in each album, simply drag and drop the galleries in the album edit page, until you get the order that you desire.

    What ordering are you trying to use?

    Thread Starter xxaimsxx

    (@xxaimsxx)

    Hi bradvin

    Yes that I know but it’s too much of a hassle esp if I’m going to have a lot of galleries in that album..between 3-4 galleries/week.

    Right now the way it’s set up, the galleries shows up in the album from the date oldest to newest. So that’s how it displays on the page. I want it reversed. I know how to change it in the php page mentioned above, however, if I added that and the plugin has an update, my code would be overwritten.

    I’m trying to figure out how to do that wo overwriting the actual file.

    Plugin Author bradvin

    (@bradvin)

    @xxaimsxx,

    I think the best thing to do would be to add a gallery sort setting to the album edit page, which by default sorts like it does now. And then you have options to sort by gallery date, gallery name, and then also ascending or descending.

    A few people have asked for something similar with the attachment sorting within galleries, so this is definitely on my TODO list.

    I will also add a filter around the way I pull galleries, so that you can customize it completely if you like.

    Bradvin the drag and drop sort on the albuns only works correctly on firefox. for some reason on chrome or IE doesn’t order them correct in the All-In-One Stack Album template. on responsive it works fine. theres any way to fix it? i have asked this on other thread but got no reply so far.

    Thread Starter xxaimsxx

    (@xxaimsxx)

    hmmM I don’t see a setting on the gallery or album page in WP. Or do you mean it’s something I have to edit in a php file?

    Plugin Author bradvin

    (@bradvin)

    @xxaimsxx,

    No, the setting does not exist, and I meant that I need to add it.

    @alapimba,

    I will respond on your original thread

    Thread Starter xxaimsxx

    (@xxaimsxx)

    oOOO okies haha, got it!

    Plugin Author bradvin

    (@bradvin)

    This has been released with v1.2.4 update.

    Please update and report any issues. Thanks

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Sorting galleries in Album via php file’ is closed to new replies.