Unique User for all visitor, but possibility to comment with unique name
Unique User for all visitor, but possibility to comment with unique name
Unique User for all visitor, but possibility to comment with unique name
displaying and sorting comments by a custom field (using PODS plugin) [closed]
After Submitting Comment Form Shows an Empy Page in WordPress
How to implement comments on specific fields in wordpress?
Emojis replaced by ‘?’ automatically
The function comment_reply_link echos the function get_comment_reply_link. If you look at the source code you see, that up to 3 arguments are needed for a proper functionality. $args an array of optional arguments that overwrite the default values $comment an optional comment_id or WP_Comment object the comment should reply to. $post an optional post_id or … Read more
Just as @Jevuska mentioned, you can use the $post_id as an argument here, in fact, you can also use a ton of optional $args as well <?php comment_form( $args, $post_id ); ?> You can find the information in the Codex here: https://codex.wordpress.org/Function_Reference/comment_form
Nope, you can do that by nested query. To get all comments of posts by a user, you should think about getting all post of that user first, then get the comments of that post. <?php $args = array( ‘author’ => AUTHOR_ID, ‘posts_per_page’ => 500, //Don’t use -1 here ); $the_query = new WP_Query( $args … Read more
You should consider removing the average_ratingfn() function definition out of there and call it with an input argument for the post ID. You can try to fetch the comment object with (untested): $comment = get_comment( $comment_ID ); and then make sure it’s not null or you have an actual comment object with: if( $comment instanceof … Read more
You got this action comment_post which fires just after comment is inserted in database