try and apply a filter to this line:
echo $curpage->post_content;
example:
echo apply_filters( 'the_content', $curpage->post_content );
try and apply a filter to this line:
echo $curpage->post_content;
example:
echo apply_filters( 'the_content', $curpage->post_content );