2026 Community Survey results are here! See how the Craft CMS community works. results are live!

Using craft.query() for a Custom Query

Learn how to set up a custom query in Craft to fetch data from any table in the database (even non-Craft tables).

Topic
Instructor
Ryan Irelan
Date Published
October 18, 2018