I'm trying to make a WP site similar to Digg. Everything is working great, except that I want to make sure people do not submit duplicate articles.
What I need is a function that searches WordPress for any posts with a specific custom field value (like "www.wordpress.org" for the "storyLink" field), and just get back the ID# of that post. That way, I'll know if that URL has been posted or not, and take appropriate action.
I do *not* want to display the post itself. I just need the ID#, or a false if the URL hasn't been entered yet. (I'm aware of szub's plugin: http://guff.szub.net/2006/04/21/search-custom-fields/ but that just gives a search result)
Thank you so much for helping me out!