wp_list_comments adds unnecessary elements
I think you have to add your own <li> when using callback. https://codex.wordpress.org/Function_Reference/wp_list_comments (see bottom info)
I think you have to add your own <li> when using callback. https://codex.wordpress.org/Function_Reference/wp_list_comments (see bottom info)
If I understand correctly you don’t need a shortcode or a filter. Just paste your yg_yorumsuz_link_gizle function into functions.php and call it from any template file (they all reside in your theme folder) such as single.php, or from a plugin. if(function_exists(‘yg_yorumsuz_link_gizle’)){ // just in case yg_yorumsuz_link_gizle(); } If you’re only doing it in one place … Read more
Do you need to use the Disqus plugin? ie are you synchronising with WordPress comments (own your own comments etc). If not, it’s easier and quicker to remove the plugin and just edit the comments.php file (the actual file depends on your theme but this is the most likely one). This answer has the Disqus … Read more
$comment = get_comment( $CommentID ); $commentatorID = $comment->user_id; if ($commentatorID > 0 ) { //Comment made by registered user, do stuff } From the codex get_comment(), about the return value of user_id: user_id (integer) The comment author’s ID if he is registered (0 otherwise)
Please Note: Doing this will be very slow! It would be much better to do one (or preferably both) of the following instead: Use wp_cron to do this on a regular basis Instead of grabbing all comments, the first time it runs set at timestamp in the options table after it completes. Each time afterwards, … Read more
It looks like there are a number of plugins that can accomplish this: http://peadig.com/wordpress-plugins/facebook-comments/ http://aaroncollegeman.com/facebook-comments-for-wordpress/ Naturally, I can’t really vouch for these plugins working well, but that is the case with any plugin. Make sure to take backups first and good luck!
There’s this built-in function for querying comments get_comments and here’s something that would help in your template: $comments = get_comments( array( ‘number’ => 10 ) ); if ( !empty( $comments ) ) { ?> <ul> <?php foreach ( $comments as $comment ) : ?> <li><?php echo sprintf( “<strong>%s</strong> on <a href=\”%s\”>%s</a> : \”%s\” — <a … Read more
You might first want to dig into the generated code to see if there is a ‘form’ tag somewhere that could be the comment box. The appearance (and existence) of the comment box on a post is under control of the theme. So I’d also change to one of the ‘twenty’ themes and see if … Read more
I found out it my self. we should add the following code to the Functions.php ti be able to sent Email via HTML codes: <?php function wpse27856_set_content_type(){ return “text/html”; } add_filter( ‘wp_mail_content_type’,’wpse27856_set_content_type’ ); ?> and then for customize the email, we should do like bellow to use HTML code in it: <?php function wpd_comment_notification_text( $notify_message, … Read more
I found out it my self: <?php $post_ids = get_posts(array( ‘fields’ => ‘ids’, // Only get post IDs ‘posts_per_page’ => -1, ‘author’ => get_current_user_id(), ‘post_type’ => ‘post’, ‘category’ => 0, ‘orderby’ => ‘date’, ‘order’ => ‘DESC’, )); foreach($post_ids as $post_id) : $argss = array( ‘post_id’ => $post_id, ‘status’ => ‘approve’, ‘author__not_in’ => get_current_user_id(), ); $comments … Read more