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
You should use <?php echo apply_filters('the_content', $page->post_content); ?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With