Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1132684

    Hallo, wie kann ich es erreichen, das die Bilder in der mansory gallery nach Alphabet absteigend sortiert werden?
    Ich habe pro Galerie bis zu 300 Bilder, wenn da welche neu hinzufüge ist es sehr mühsam diese immer von Hand an die erste Position zu verschieben :-(

    #1133917

    Hey Roland,

    Thank you for using Enfold.

    Where can we see the issue? Are you referring to media gallery selection? You can click the “Reverse Order” button to adjust the image sorting.

    Best regards,
    Ismael

    #1133965

    don’t know if there is a child-theme functions.php snippet to change that.

    This is for Image Galleries:
    well you can find in gallery.php ( enfold⁩ ▸ ⁨config-templatebuilder⁩ ▸ ⁨avia-shortcodes⁩ ▸ ⁨gallery⁩ )
    on line 256 : 'orderby' => 'post__in'
    change it to 'orderby' => 'title'

    you can have your own shortcode in child-theme – : https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb

    #1133977

    For Masonry Gallery – try this in child-theme functions.php:

    if(!function_exists('avia_change_posts_query')){
    	function avia_change_posts_query($query, $params){
    	    if(!empty($query['orderby']) && $query['orderby'] == 'post__in'){
                       $query['order'] = 'ASC';
                       $query['orderby'] = 'title';
    	    }
    	    return $query;
    	}
    add_filter('avia_masonry_entries_query', 'avia_change_posts_query', 10, 2);
    }

    ASC ( from A to Z )
    DESC ( from Z to A )

    #1134003

    Vielleicht funktioniert das aber nicht mehr mit dem Load More Button – keine Ahnung

    #1134355

    Hi,

    Thanks for helping out @guenni007.

    Best regards,
    Rikard

    #1134625

    but if you are a passionate fotographer – maybe a thirdparty plugin is a better way. there are exif addons – where you can sort the images on exif data.

    i tried some but no one supports Avia ALB or other image inserting on Enfold til now.

    • This reply was modified 5 years, 2 months ago by Guenni007.
    #1136755

    Wie sieht es aus? Hats damit geklappt?

    #1137654

    Danke für die Antworten. Ich komme erst Montag zum testen. Gebe dann Rückmeldung.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.