post_content is empty
First, you need to pass the post $id in the function and not $title and $content: function new_post($id) Then your function may be echoing the content – check your source code in your browser via “View Page Source” if it appears blank. However, if you use echo $content then shortcodes, WordPress’s formatting and password protection … Read more