Je récupère post_id de postmeta comme:
$post_id = $wpdb->get_results("SELECT post_id FROM $wpdb->postmeta WHERE (meta_key = 'mfn-post-link1' AND meta_value = '". $from ."')");
quand j'essaye, print_r($post_id);
j'ai un tableau comme celui-ci:
Array
(
[0] => stdClass Object
(
[post_id] => 140
)
[1] => stdClass Object
(
[post_id] => 141
)
[2] => stdClass Object
(
[post_id] => 142
)
)
et je ne sais pas comment le traverser, et comment pourrais-je obtenir un tableau comme celui-ci
Array
(
[0] => 140
[1] => 141
[2] => 142
)
Une idée comment puis-je faire cela?