<?php
$imageFD=$this->item->extraFields->ALIAS->value;
$srcFD=explode('src="', $imageFD);
$srcFD=$srcFD[1];
$urlFD = strstr($srcFD, '"', true);
?>
Display only the URL of an image from a K2 custom field, to display it as a background instead of a img for example.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.