I am trying to get the url for a post's image, if it has one. Thought it would be simple, it was easy enough to get the title, except, content, etc but I am running into problems.
I thought the next_image_link( ) might work, but when I use it in my loop, I get
Notice: Undefined variable: k in C:\wamp\www\DUSL\wp\wordpress\wp-includes\media.php on line 913
Is this a known bug? Is there another function that's more reliable?
I can just use php to to pull the value of src out of the content, but it seems like this would be an every day need, don't want to reinvent the wheel if I don't need to.
Thanks for any help!