previous_image_link() WP 1.0
Displays previous image link that has the same post parent.
Works based on: adjacent_image_link()
No Hooks.
Return
Null. Nothing.
Usage
previous_image_link( $size, $text );
- $size(string/int[])
- Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order).
Default: 'thumbnail' - $text(string)
- Link text.
Default: false
Notes
- See: adjacent_image_link()
Changelog
Since 2.5.0 | Introduced. |
Code of previous_image_link() previous image link WP 5.6
function previous_image_link( $size = 'thumbnail', $text = false ) {
adjacent_image_link( true, $size, $text );
}Related Functions
From tag: image (not thumbnails funcs)
More from tag: Link (tag A in HTML)
More from category: Images
More from Template Tags: Posts, Pages, ...
- body_class()
- get_post_format()
- get_post_time()
- get_the_date()
- have_posts()
- in_the_loop()
- next_post_link()
- next_posts_link()
- post_class()
- post_password_required()
- posts_nav_link()