Thank you very much for your reply. I really didn’t consider the way you mentioned. I think I’ll give it a try 🙂
The more comfortable way would be to get the filtered attachments directly from the database, as I need them to count, set the next / previous link and so on….
All I want to do is to exclude some images from the gallery without putting id’s into the shortcode. So I want to use 0 or -1 in the order field to ignore them. Maybe I’ll try to extend the built-in gallery with an ‘ignore’ field….
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Filter attachments by menu_order’ is closed to new replies.