Since: 2.0.5
pods_image_url
Get the Image URL for a specific image field
Function Definition
function pods_image_url ( $image, $size = 'thumbnail', $default = 0, $force = false )
Source File: /pods/includes/media.php
Parameters
Parameter | Type | Details |
---|---|---|
$image | (array|int|string) | The image field array, ID, or guid |
$size | (string|array) | Image size to use. Either the name of a registered image size or an array of image dimensions. Use 'null' for original image size. |
$default | (int) | Default image to show if image not found, can be field array, ID, or guid |
$force | (boolean) | Force generation of image (if custom size array provided) |
Returns
(string) Image URL or empty if image not found