Training mode
Time remaining:
0 / 18 answered
$query = new WP_Query( $args ); while ( $query->have_posts() ) { $query->the_post(); the_title(); }
The secondary loop changed the global $post variable.
The query contains values supplied at runtime.
Do not concatenate untrusted values into the SQL string.
Think about both access frequency and total payload size.
Autoloaded options are loaded on many requests.
Consider external object caches as well as the database implementation.
An expiration is a maximum lifetime, not a minimum lifetime.
The query contains more than one metadata condition.
Think of boolean logic between clauses.
Do you need max_num_pages?
The default object cache is request-scoped.
The function supports both creation and update.
Request only the shape of data you need.
It is not the operating system cron daemon.
Use carefully on large datasets.
It does not exclude sticky posts from matching.
Metadata and taxonomy data use different query arguments.
LIKE escaping and SQL placeholders solve different problems.
Avoid caching a literal false when you must distinguish it.
Keep unrelated or very large values separate.
A key may be common, such as count.
Fast stale data may still be wrong.