wp_trash_post retrashes already trashed comments?
wp_trash_post retrashes already trashed comments?
wp_trash_post retrashes already trashed comments?
How to force users to nest their comments
Those are pingback or trackbacks. They are mechanisms by which blogs alert each other about cross-linking or references to other posts. Pingbacks and trackbacks are common from SPAM or scrapper sites so you do want to take a look and make sure you are not approving comments from disreputable sources but in general, these are … Read more
Since you want comments on posts, I would suggest that you not change the discussion options in the Settings section, but you can enable/disable comments on a per post or per page basis. In the admin area, click to edit a page that you want to restrict comments from. Then, when you scroll down the … Read more
http://ottopress.com/2008/wordpress-2-7-comments-enhancements/ You can ignore the references to legacy stuff. That was posted 6 years ago, we’re past the need for pre 2.7 support.
Few notes here. 1, why are you re-declaring variables. For example: $comment_ID = comment_ID; $comment_post_ID = comment_post_ID; $comment_author = comment_author; $comment_author_email = comment_author_email; Is all pointless, If a variable is set already, no reason to set it a second time. Secondly, unless you pass variables through to the function through arguments like so: Function wp_insert_comment($some_var, … Read more
Add comment meta
My point is: show posts last commenter name and comment date d F H:i together. Any suggestions? I think what you want is: $defaults = array( ‘post_id’ => $post->ID, ‘number’ => ‘1’, ‘orderby’ => ‘comment_date_gmt ‘, // default value; not really necessary ‘order’ => ‘DESC’, ‘status’ => ‘approved’, ); You shouldn’t need to run get_comments() … Read more
Here is some code which i use to login between two site one is in wordpress and one is non-wordpress. I send an ajax request to wordpress site having email and password as data. After get this data on wordpress site i user wp_signon function to login the user. Here is the code. function sign_in_action() … Read more
Comments Template shows, but not the comments