Tell us what you are trying to do?
I want to get the URL of a featured image of one of my custom post (Step or POI). Only the URL and only from posts with featured image
On my layout i have a simple css style block (#masthead) that specify the background of the header section. I need to retrieve randomly a featured-image url of specific custom-posts types (steps and POIs).
With the actual code i can retrieve the url (without the standard html of a view) but sometimes it retrieved the url feature-image of post with no featured-image, so the url is empty and the header blank.
I check today and i can't reproduce the problem. Certainly a cache problem. Sorry