I have this given array of ids assigned to a certain variable,
$post_id = array('756','754','752','750');
and then what I want is to get all posts, with ID which is inside the array. Is it possible to get all posts, preferably inside an array, which have IDs that correspond to the given array of IDs? This is for my WordPress project and since I’m a newbie with this thing, I am a bit lost right now. Please guide me.:(
Thanks.
You have to implode() arrays.
I think you were looking for MySQL’s IN() clause.