I'm getting some pages with the get_pages function and echoing the page content like: $page->post_content
, but contrary to the_content()
, this way wordpress wont add p tags automatically, is there any way to add them here?
Thanks in advance
Use the wpautop()
function.