List User Comments on User Profile BuddyPress [closed]
List User Comments on User Profile BuddyPress [closed]
List User Comments on User Profile BuddyPress [closed]
Send your post id in the function and it will look something like this <?php function dp_recent_comments_ajax($ID) { $no_comments = 5; $comment_len = 300; global $wpdb; $request = “SELECT * FROM $wpdb->comments”; $request .= ” JOIN $wpdb->posts ON ID = comment_post_ID”; $request .= ” WHERE comment_approved = ‘1’ AND post_status=”publish” AND post_password =””; $request .= … Read more
Version depandabiliy – I don’t know why but I was using wordpress 3.3.1 and suddenly one day these function stop working I don’ know why ? but that’s the same thing happens to me – I usually install some common plugins to all my sites – but I never knew if i was plugin fault … Read more
Have you tried $subscriber= get_role(‘subscriber’); $subscriber->add_cap(‘edit_comment’); NOTE eidt_comment is only supported in verson 3.1 or later This worked for me , hope it helps you!
I had the same issue, main users have the contributor role and a simple sidebar comment sidebar widget was not working when logged-in! Strange. I solved it by some sql: function getLatestComments ( $postid ) { global $wpdb; $sql = “SELECT * from $wpdb->comments WHERE comment_post_ID = $postid AND comment_approved = 1 ORDER BY comment_ID … Read more
(copied from comment above, so that this question will get an answer): You can try http://wordpress.stackexchange.com/a/89238/26350 if you want to disable comments but still want to have the comment form visible. – birgire Oct 24 ’13 at 1:46
How to import only certain comments from post[s]
changing comment-page-# to something like review-page-#
I’ve answered my own question with some more reading and some messing around… I had to run a ‘foreach’ that cycles through the given post’s comments within the main loop. The following code looks at all the comments for each post that passes through the loop and checks for a specific string in the comments’ … Read more
Share comment to twitter after publishing [closed]