Fixed variable name

The name of the variable in the view view is $post not $posts