Slide 19
Slide 19 text
$args =array(
key => value,
key2 => value2,
);
$args = array(
'post_type' => 'portfolio',
'post_status' => 'publish',
);
Familiar?
Or that when you are working with custom fields, or meta data you are dealing with key value pairs. If you dig into the WordPress DB you will find
wp_posts or whatever your _posts table is called. There are columns in that table for post_type and post_status. These two column names are the “Keys”
and the meta info is the “value”. Spending a little time in the DB will give you an idea of how and where data is stored and consequently what you can do
with it. Having user role issues? Check user and user meta. What do you find/put in _options? Before changing anything in the DB make sure you have a
backup and know how to use it. ;) Or work from a backup locally where you can make changes with impunity!