Added additional check to prevent error when running under WP older than 2.8
3.0
Added widget support (widgetized the plugin)
Added shortcode support ([custom_field])
Added c2cgetpost_custom() : Useful when you know the ID of the post whose custom field value you want.
Added c2cgetrandom_custom() : Retrieve the value of a random instance of the specified custom field key, as long as the
field is associated with a published posted, non-passworded post
Added c2cgetrandompostcustom() : Retrieve the value of a random instance of the specified custom field key for a given
post
Added c2cgetrecent_custom() : Retrieves the most recent (according to the associated post's publish date) value of
the specified custom field.
Used $wpdb->prepare() to safeguard queries
Updated copyright
Noted compatibility through 2.8+
Dropped compatibility with versions of WP older than 2.6
Tweaked description and docs
2.5
Modified SQL query code for c2cgetrecentcustom() to explicitly look for posttype of 'post' and then optionally of 'page'
Per-custom field filter name is now made using a sanitized version of the field key
Minor code reformatting
Removed pre-WP2.0 compatibility and compatibility checks
Changed description
Updated copyright date and version to 2.5
Added readme.txt
Tested compatibility with WP 2.3.3 and 2.5
2.1
Removed the $filter argument from c2cgetcustom() and c2cgetrecent_custom()
Replaced $filter argument with more robust filtering approach: filter every custom field via the action 'themeta', filter specific custom fields via 'themeta_$field'
Add argument $includestatic (defaulted to true) to c2cgetrecentcustom(); static posts (i.e. "pages") can be optionally excluded from consideration
Verified to work for WP 1.5 (and should still work for WP 1.2)
2.02
Minor bugfix
2.01
Minor bugfix
2.0
Added the new function c2cgetrecent_custom() that allows retrieving custom/meta data from outside "the loop"
Better filtering (on meta field itself instead of final output string)
Per-call filtering of meta fields
Prepended all functions with "c2c" to avoid potential function name collision with other plugins or future core functions. NOTE: If you are upgrading from an earlier version of the plugin, you'll need to change your calls from getcustom() to c2cgetcustom()
Changes to make the plugin WordPress v1.3 ready (as-yet unverified)
Switched to MIT license
1.0
Added argument of $before_last (which, when $between is also defined, will be used to join the next-to-last and last items in a list)
Added invocation of an action called 'themeta' so that you can do addfilter('themeta', 'somefunction') and get custom field values filtered as they are retrieved
To faciliate use of this plugin as the argument to another function, this plugin no longer echoes the value(s) it retrieves (user must prepend 'echo' to the call to get_custom())