[wp-trac] [WordPress Trac] #42687: get_post_meta() is returning arrays even when the $single value is true
WordPress Trac
noreply at wordpress.org
Fri Nov 24 09:26:41 UTC 2017
#42687: get_post_meta() is returning arrays even when the $single value is true
-------------------------------+------------------------------
Reporter: titodevera | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 4.9
Severity: normal | Resolution:
Keywords: reporter-feedback | Focuses:
-------------------------------+------------------------------
Comment (by titodevera):
Hi dd32.
I´m updating meta data as single value and there are no multiple
meta_values for any given meta_key.
The error only occurs when i retrieve all post meta data from a post, it´s
working well when I specify a meta_key as in your example (second
get_post_meta() param)
Thanks!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42687#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list