• Resolved brotmaschine

    (@brotmaschine)


    Hello,

    i have more than 1.000 gallery created.
    if i add a new one the list is sorted by gallery id. how can i sort by title DESC?

    the file is: ../nextgen_addgallery_page/templates/upload_images.php
    the Code line 5 – 7:
    <?php foreach ($galleries as $gallery): ?>
    <option value=”<?php echo esc_attr($gallery->{$gallery->id_field}) ?>”><?php echo esc_attr($gallery->title) ?></option>
    <?php endforeach ?>

    who can help please?
    thx
    brotmaschine

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Imagely

    (@imagely)

    @brotmaschine – We do have some hooks available for sorting the galleries list although that section of our code is not where they are applied. We also do not support the modification of any plugin core code as it is not update safe.

    As it is, the following might be of use:

    /** Adjust Manage Galleries list results */
    /** see ..wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/admin/manage-galleries.php */
    
    add_filter( 'ngg_manage_galleries_items_per_page', ‘callback_function_return_int’ );
    add_filter( 'ngg_manage_galleries_items_order', ‘callback_function_return_string’ );
    add_filter( 'ngg_manage_galleries_items_orderby', ‘callback_function_return_int’ );

    Thanks!

    – Cais.

    Thread Starter brotmaschine

    (@brotmaschine)

    Hey Imagely,

    thx for support but that is not my “problem”
    if i add some pictures to a gallery there is sort the gallary by “gid”. For me it is better for sort by gallerytitle, because tehere are to much galleries. more than 1.000…

    Dashboard > Gallery > add gallery/picture > upload picture (the drop down menu with all the galleries)

    thank you!

    Plugin Contributor Imagely

    (@imagely)

    @brotmaschine – Ahh, thanks for the clarification. We do not have a filter for that option although you may be able to leverage using the first character of the gallery to quickly move through the list …

    Thanks!

    – Cais.

    viertelbogen

    (@viertelbogen)

    I have nearly the same problem (not 1000 but 900+ galleries).
    In version 1.9.6 the dropdown menu showed the gallery-id in descending order.
    Version 2.2.14 shows no id and the sort-order is random (?)

    Is it possible to show the gallery-id as it was in 1.9.6?

    Thank you!

    Plugin Contributor Imagely

    (@imagely)

    @viertelbogen – You’re welcome to suggest this as a Feature Request here: https://imagely.com/feature-voting/

    Thanks!

    – Cais.

    Anonymous User 9105421

    (@anonymized-9105421)

    I was bumping into the same issue and found a posible alternative in “NextCellent Gallery – NextGEN Legacy”:
    https://www.ads-software.com/support/topic/gallery-sorting-order-dropdown-menus-add-gallery-images-and-add-media/

    Be save when experimenting, back up your database and galleries first.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘gallery sort order > adding gallerie / picture’ is closed to new replies.