Opened 9 years ago
Last modified 4 years ago
#34638 new feature request
New function for retrieving previous and next adjacent image
Reported by: | solidcolour | Owned by: | |
---|---|---|---|
Milestone: | Future Release | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Media | Keywords: | has-patch |
Focuses: | Cc: |
Description
There are previous_image_link()
and next_image_link()
functions. But there are no functions that only return true
and false
, which would works similarly to get_previous_post()
and get_next_post()
but for images. It would be very helpful to have that, so we can easily to control whether to output the pagination HTML markup in image.php
.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Patch adds
get_previous_image_link()
,get_next_image_link()
andget_adjacent_image_link()
which return the link instead of echoing it.