EntityFieldQuery: Let Drupal Do The Heavy Lifting (Pt 1) February 16, 2012 in Development, Drupal 12 Comments on this post. http://twitter.com/kid_ic4rus Ryan Kois Seriously? 0 Comments? Thank you, Tim, for putting this together. EFQ is a crucial mechanism to grasp. Bruce C hotwebideas.net Hey, great tutorial on EFQ. I was driving myself crazy trying to do the same thing with a Drupal view w/ contextual filters and the views_get_view() function and nothing worked. EntityFieldQuery() is both the easiest and the most powerful. Thanks!. I am waiting for Part 2. jayboss222 This is solid! Great breakdown of an amazing function. Thanks for providing some great insight into an ill documented class John Great post, I am just learning to code for Drupal and your post is easy to follow and understand, Thank you! Animad9 Drupal and disqus same with wordpress anf disqus? Fairbanks SEO analogymous Great article, it is well written and gets the point across wonderfully. I have two issues. Could you pre format your code; It is difficult to read. Also, you are using ‘ (apostrophe) in the article instead of ‘ (single ditto mark). I was attempting to run your code in devel and it kept giving me an error. I could not see why until I copied it over to my IDE. Tim Cosgrove Thanks Frank! This post needed some code formatting attention. Hopefully this will help both your problems. analogymous Beautiful, thanks. http://www.seduniatravel.com/ Steven Wong Part 2 for the lazy: http://www.phase2technology.com/blog/entityfieldquery-let-drupal-do-the-heavy-lifting-pt-2/ Pingback: Phase2: Static Prototyping and Keeping Drupal Simple (KDS) - Drupal King Chris Great article. I learned a lot about EFQ here.. I am just wondering if I could add a condition based on a custom field in the user profile… I.e. query articles created based on that custom field. thanks! federico This is really interesting. Is it possible to get also other infos from the nodes without calling a node_load on the nids? for example, i’d like to have the title of the nodes retrieved, and i just need that. Can i avoid calling node_load_multiple to get that information? thanks!