I’m trying to display comments outside of wordpress, and allow people to post a reply.
I’ve included “wp-blog-header.php” so I have access to WP functions/data.
I’m accessing the post by passing the post ID to the page, and calling the “get_post” function.
$post = $_GET[‘post’];
$the_post = get_post($post, ARRAY_A);
And pulling the comments via:
$comment_array = get_approved_comments($post);
That all works just fine for displaying the post/comments, but it is not letting me post replies.
If I try and request the comment form via “comments_template();” I acts like the post is locked for comments, even though it is not. So people can not post a reply.
What can I do to enable comment posting for this?
- The topic ‘Display and Submit Comments, Outside of WP’ is closed to new replies.