只需在保存字符串时将数组保存到post meta-
$data = array("200", "201", "202");
//Update inserts a new entry if it doesn\'t exist, updates otherwise
update_post_meta($post_ID, \'_parent_id\', $data);
用于获取post call的
get_post_meta 如下所示-
get_post_meta($post_ID, \'_parent_id\', true);
您将获得阵列。然后运行
for 或
foreach 循环以显示要显示的阵列数据。