In my WordPress custom post type loop only want to pull in from three posts 5171, 5167 and 5165.
If I do:
'post__in' => array(5171,5167,5165),
The loop outputs the values for those three correctly.
If I do:
'post__in' => array($my_share),
It only outputs the values for 5171. However $my_share equals 5171,5167,5165. If I do echo $my_share
it also shows 5171,5167,5165.
Is there any obvious reason why $my_share is only passing the first value into the post__in array or anyway around that issue?