How can I hide comment of the authors from their published posts?
How can I hide comment of the authors from their published posts?
How can I hide comment of the authors from their published posts?
How do I change where “You must be logged in to comment” directs users?
How to rename/change the comment labels in WordPress backend?
How to add comments to my custom post type but hide it from default WordPress Comments section?
how to show comments only author which send own posts in wordpress
Post comments don’t show
SQL command to delete “pending comments” doesn’t work…?
Well finally I found, just added a test on “who” reads the comments. If the reader has moderation rights, the “moderator’s name” shows up, in the admin section AND in the post page. There is probably another way to do it, but that’s ok for me!
Show content if user left comment / non-logged visitors?
Do you actually insert the comments right after you created the CPT post? I.e. Both the snippets in the question are in the same scope, e.g. wp_insert_post( $post_array ); for($j = 1; $j <= $total; $j++){ … wp_insert_comment($comment_array); … }. If yes, then you can store the post ID returned by wp_insert_post() to a variable … Read more