Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • in reply to: Enfold 3.2 – Avia layout not showing #455520
    This reply has been marked as private.
    in reply to: Masonry gallery tag filter #452795

    Hi Elliott

    i put this code in functions.php and it works, the issue was with the mansory gallery
    If you have any other suggestion please advise

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

    thanks for you support
    Marco

    in reply to: Masonry gallery tag filter #452017

    Hi All

    Is there any way to order the image from the last uploaded to the oldest?
    At the moment i have the below code for “random” order

    add_filter('avia_masonry_entries_query', 'avia_random_image_query', 10, 2);
    function avia_random_image_query($query, $params)
    {
        if(!empty($query['post_mime_type']) && $query['post_mime_type'] == 'image')
        {
            //$query['orderby'] = "rand";
        }
    
        return $query;
    }

    I removed the above code from the functions.php but the order still not from the newest to the oldest

    Waiting for your reply

    best
    Marco

    in reply to: Masonry gallery tag filter #442686

    Hi Yigit

    yes i know but as i have a lot of pictures to show i’m looking for another solution like put tags on the images and showing as filters on the top page.
    No way?

    Thanks
    Marco

    in reply to: Remove image hover link icon #442685

    Hi Yigit

    thanks! It works
    Please close the topic, solved

    Best
    Marco

Viewing 5 posts - 1 through 5 (of 5 total)