Tagged Questions
0
votes
1answer
98 views
Gallery shortcode numerical sorting
When I try to sort a Gallery created through the [gallery] shortcode by numerical titles I get them sorted in alphabetical order. That means that they are sorted like so:
1, 3, 34, 4, 56, 6, etc.
...
0
votes
1answer
190 views
Ordering of gallery images without using shortcode in theme
I using the built-in gallery in wordpress to store and sort images inside a custom post type. In the theme I was using:
$attachments = get_posts(
array('post_type' => ...
0
votes
1answer
46 views
Autosort uploads in galleries by filename
A client of mine wishes to not have to sort images uploaded into a post gallery, but instead rely on its filename for sorting (e.g. "01_sample.jpg", "02_sample.jpg"). This would save a lot of time for ...
0
votes
3answers
1k views
How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?
I am trying to retrieve all the images from the Gallery of a page in the order they are set in the backend.
So far I have:
$my_wp_query = new WP_Query();
$all_wp_pages = $my_wp_query->query(
...
0
votes
1answer
292 views
Native gallery sorting is ignored
On my website, I recently got a quite strange problem. I used to upload images via the nextGen Plugin. But since with this plugin google doesn't seem to index my pictures, I wanted to switch back to ...