pods_image

Get the  HTML for a specific image field

Get the  HTML for a specific image field

Function Definition

function pods_image ( $image, $size = 'thumbnail', $default = 0, $attributes = '', $force = false )

Source File: /pods/includes/media.php, since 2.0.5

Parameters

PARAMETER TYPE DETAILS
$image (array|int|string) The image field array, ID, or guid
$size (string|array) Image size to use
$default (int) Default image to show if image not found, can be field array, ID, or guid
$attributes (string|array)  Attributes array or string (passed to wp_get_attachment_image)
$force (boolean) Force generation of image (if custom size array provided)

Returns

(string HTML or empty if image not found

Other Helpful Documentation on Media Functions

pods_attachment_import

Import media from a specific URL, saving as an attachment

pods_image_id_from_field

Get the Attachment ID for a specific image field

pods_image_resize

Resize an image on demand

pods_image_url

Get the Image URL for a specific image field