Press "Enter" to skip to content

Tag: the_date

Quick Tip: WordPress “get” and “the” template functions

If you’re learning how WordPress templates work, there are two kinds of functions you’ll see a lot. What I like to call, the “get” and “the” template functions. If you haven’t noticed by now, there are functions in WordPress that seemingly do the same thing, so what is the difference? When do you use either one? Here are some examples:

“Get” function “The” function
get_the_title the_title
get_the_excerpt the_excerpt
get_the_permalink the_permalink
get_the_post_thumbnail the_post_thumbnail
get_the_date the_date
*get_the_content the_content

I learned PHP through WordPress first, before I went on to solidify my PHP knowledge outside of it. If you’re in the same boat that I was, even if you’re not a beginner in other languages like HTML and Css, here is how I learned these functions.

Leave a Comment
%d bloggers like this: