When you set the third parameter of get_post_meta()
to false
, it returns an array of all the values mapped to that key – setting this parameter to true
returns a single value.
So your code is correct. You’d get the exact same thing if you did something like this:
$test = array( "1", "2", "3" );
echo $test; // prints "Array"
If you want to view the contents of your array, you’ll need to use print_r()
:
$item = get_post_meta( $post->ID, 'multiedit_Info', false );
echo print_r( $item );
If you were to do this with the $test
array from my above example, you’d see:
Array
(
[0] => "1"
[1] => "2"
[2] => "3"
)