In Chapter 3, I wrote a custom display loop that showed the top five most recent post titles in my Features category. I used a WordPress function called setup_postdata()
.
I mentioned you might notice that the setup_postdata()
function isn't listed in WordPress.org's template tag reference page. Template tags are WordPress functions that are defined for use specifically within themes; the setup_postdata
function is part of WordPress' core functions.
Core functions are primarily useful to plugin developers and the developers customizing WordPress' overall functionality for themselves. Occasionally, as we discovered in Chapter 3, some of the functions can be useful to theme developers who want highly specialized functionality within their themes.
I won't take time to break down any core functions into a table, as most people won't really need these for their theme development. I just want to make you aware of the existence of core functions so that if you ever do find...