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).

Transcript

Premium

Follow along with the full transcript

Search every word, click any line to jump to that moment, and read along as you watch — a CraftQuest Premium feature.

Sign up for Premium
Topic
Instructor
Date Published
October 18, 2018

Some stuff to help you along during the lesson: