Forum Replies Created
Viewing 5 posts - 1 through 5 (of 5 total)
-
AuthorPosts
-
This reply has been marked as private.
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 adviseif(!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
MarcoHi 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” orderadd_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
MarcoHi 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
MarcoHi Yigit
thanks! It works
Please close the topic, solvedBest
Marco -
AuthorPosts
Viewing 5 posts - 1 through 5 (of 5 total)