Is there a way to return single values only when I run
get_post_custom($post_id);
it seems that I’m receiving double array, even when there only one value for this meta_key
Is there a way to return single values only when I run
get_post_custom($post_id);
it seems that I’m receiving double array, even when there only one value for this meta_key
Comments are closed.
this is what I’ve done to achieve this, it will return single dimension array when single results are found, and bi-dimensional array when multiple results are found
See Codex for
get_post_meta
If you look at
get_post_custom
in the Codex you will read: