#13052 closed enhancement (wontfix)
Return the URL of the next adjacent image in a gallery
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
A function that returned the URL of the next adjacent image for an attachment in a gallery post, or the URL of the parent post if there isn't an adjacent image, would be a really useful enhancement for attachment templates.
Attached is a diff of media.php with the custom function I rolled from adjacent_image_link() to do just that.
Attachments (1)
Change History (7)
#2
@
15 years ago
That is … true. It works just like adjacent_image_link() and will only return the next adjacent attachment URL—completely ignoring the gallery ordering.
#4
@
15 years ago
- Component changed from General to Media
- Milestone changed from Unassigned to Future Release
#5
@
11 years ago
- Resolution set to wontfix
- Status changed from new to closed
This isn't possible since 3.5; galleries are no more synonymous with the attachments uploaded/related to the post, and multiple galleries can exist in a post's content utilizing the the ids
attribute on the [gallery] shortcode. Closing this out as wontfix.
Note: See
TracTickets for help on using
tickets.
Sounds like an interesting idea.
Does this not need to be aware of the ordering of the gallery though?