﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc
20752	get_post_meta() accepts int as string value only	marcella1981		"With custom fields with keys

{{{
custom_field_0
custom_field_1
custom_field_2
}}}

Grabbing the data as follows is fine

{{{
$field[] = get_post_meta(get_the_ID(), 'custom_field_0');
$field[] = get_post_meta(get_the_ID(), 'custom_field_1');
$field[] = get_post_meta(get_the_ID(), 'custom_field_2');
}}}

Return: Field value

However

{{{
for($i = 1; $i <= 3; $i++) :
    $field[] = get_post_meta(get_the_ID(), 'custom_field_'.$i);
endforeach;
}}}

Return: null"	defect (bug)	closed	normal		General	3.4	normal	invalid		
