I'm working on a website for a musician, and I have defined Types for Albums and Tracks. Both can have artwork, and when I display the tracks, I would like the following logic to determine which image is displayed:
"Does the track have its own artwork? If so, then display it, otherwise does its album have its own artwork? If so, then display that, otherwise display default artwork instead."
I currently have this in my View Template (I realise this doesn't quite do what I want, but it's really for debugging):
Track Artwork: [types field="track-artwork" size="thumbnail" align="left"][/types]<br /> Album Artwork: [types field="album-artwork" id="$album" size="thumbnail" align="left"][/types]<br /> [wpv-if track-artwork="wpcf-track-artwork" evaluate="empty($track-artwork)" debug="true"] Track Artwork is Blank! [/wpv-if]
As far as I can tell, this should display the Track Artwork, if it exists, then the Album Artwork, if it exists, if it exists, then if there is no Track Artwork, it should also display the message "Track Artwork is Blank!".
Instead of this, I see both images (for tracks/albums which have both), followed by "Conditional expression includes illegal characters".
What am I doing wrong?
Thanks.