[wp-trac] [WordPress Trac] #20853: get_post_custom show directly serialized data from the post_meta arrays.
WordPress Trac
wp-trac at lists.automattic.com
Wed Jun 6 05:45:15 UTC 2012
#20853: get_post_custom show directly serialized data from the post_meta arrays.
--------------------------+------------------------------
Reporter: shadowhck | Owner:
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+------------------------------
Comment (by shadowhck):
Edit:
{{{
$var = get_post_custom($post_id);
echo $var['camp']['some']; Metod, (Not work because "Returns a
multidimensional array" with all values, and 0 is the first or the unique
value).
echo $var['camp']['some'][0]; /* Metod, >:( , Not work. Print:
a:2:{i:some;s:4:"this";i:thing;s:7:"content";} */
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20853#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list