Tag: metadata
get_queried_object(): How and Why to Use It


WordPress’s get_queried_object() function has the distinction of being, I think, the most useful core function in WordPress that I didn’t know about for the longest time.
How to Create and Use WordPress Custom Fields


This article describes how to work with WordPress custom fields, also called post meta. In it, we describe how to use WordPress’s post meta PHP functions, especially get_post_meta() and update_post_meta(), and provide in-depth code demos as well as practical advice for working with custom fields tools like Pods and Advanced Custom Fields.
Don’t Cache WP_Query Objects (and Why Not)


Recently, I was working on site speed for a client with one page that makes a large number of custom database queries through WordPress’s WP_Query API.
A Good Article Comparing Custom Fields and Custom Taxonomies


A guy named Anh read our article on custom taxonomies and custom fields, and contacted us pointing to a similar article he wrote on his own site. His article’s good—what I like about it, specifically, are the bolded key points on the differences between taxonomies and fields, such as: