Thread: PHP question
View Single Post
Old 07-01-2013, 09:55 PM  
BSleazy
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Location: USA
Posts: 6,721
Quote:
Originally Posted by vdbucks View Post
See my post above... noting specifically the "'meta_key' => '_thumbnail_id'" in the query args...

If, however, you want to discard all other post data except for the featured image info, then you'll have to do a more advanced query with wpdb, join some tables and such... I could give you an example if this is what you want to do, but to be honest, the savings in overhead won't be that great compared to just running a normal query like I gave you above.
I did try your example about but all the posts/thumbs disappeared so I don't know what the problem is.
__________________
icq 156131086
BSleazy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote