So I was thinking the other day how one should never have to query the database directly from a template in WordPress.

Then I found a situation where I needed to do just that.

Then I discovered that no, actually I didn’t need to query the database directly after all.

Advertisements

Author: taupecat

Founder & Principal of Taupecat Studios. WordPress Developer & Front-End Architect. Instructor at General Assembly. WordPress core contributor. Speaker. Skier.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s