Make WordPress Core

Opened 4 years ago

Last modified 4 months ago

#34638 new feature request

New function for retrieving previous and next adjacent image

Reported by: solidcolour Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.4
Component: General Keywords:
Focuses: Cc:
PR Number:


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.

Change History (0)

Note: See TracTickets for help on using tickets.