Slight problem, I have the following code:
$purchaseprodid = $_GET['ids'];
$args = array(
'post_type' => 'prizes',
'post__in' => array($purchaseprodid)
);
query_posts($args);
while (have_posts()) : the_post();
I am getting comma seperated numbers for id's in a url, and they dont seem to be querying the posts. If I manually type the id's in they work no problem, but just not when using a variable $purchaseprodid.
Any ideas?
Thanks!