on-internet
← Community

WordPress - Custom Comments - Parent / Nested Reply

Stack Overflow ·

I am making a custom WordPress theme and have edited comments.php, but I'm unable to get the comments to save as a reply to another comment. I have succeeded in showing the comment parent id to show as a hidden value in the source code, but it doesn't save it accordingly in the database (instead, it always saves the comment_parent as 0). Also, the commenter IP address isn't saved either for some reason (comment_author_IP appears as "::1"). Here's the code I have so far: <?php if ( post_password_required() ) return; ?> <div id="comments" class="comments-area"> <?php // You can start editing her

Comments

Sign in or sign up to comment and upvote.

No comments yet.