post_status == ‘publish’) :
echo $navbar->post_content;
endif;
?>