How do I change where “You must be logged in to comment” directs users?
How do I change where “You must be logged in to comment” directs users?
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
First off, you need to fix the comment_meta value. It should be an array of meta key and value pairs, and not just the meta value. So give the meta a key (or name), e.g. message_id, and then do something like so: ‘comment_meta’ => array( ‘message_id’ => preg_replace(‘~[<]~’,”,strstr($mail[‘header’]->message_id, ‘@’,true)), ), Now to check if a … Read more