Displays next image link that has the same post parent.
Parameters
$size
string|int[]optional- Image size. Accepts any registered image size name, or an array of width and height values in pixels (in that order). Default
'thumbnail'
.Default:
'thumbnail'
$text
string|falseoptional- Link text.
Default:
false
Source
$width_rule = '';
if ( ! empty( $atts['width'] ) ) {
$width_rule = sprintf( 'width: %dpx;', $atts['width'] );
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Basic Example