I want to show a specific wordpress post in a modal popup. I've retrieve the post id via ajax, but when I query for the post with the code bellow it throws error:
'post__in' => $post_id
if ( have_posts() ) :
while ( have_posts() ) : the_post();
My Google search suggests that I should do the query this way. But why it isn't working?