How to filter comments by comment_meta

I needed to use new WP_Comment_Query and set my $args to show only this post, with the meta attached. Hope this helps someone! <?php comment_form(); if (have_comments()) : ?> <div class=”container”> <div class=”btn-group flex”> <button type=”button” onclick=”window.location.href=”https://wordpress.stackexchange.com/questions/406158/<?php echo the_permalink();?>/?cmeta=ALL””>SHOW ALL</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=BUY””>BUY</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=SELL””>SELL</button> <button type=”button” onclick=”window.location.href=”<?php echo the_permalink();?>/?cmeta=TRADE””>TRADE</button> … Read more

How do I add tags to entire comments, not just their text

Currently your comment markup looks similar to the following: <li class=”comment byuser comment-author-rcotwunite odd alt thread-odd thread-alt depth-1″ id=”comment-7902″> <div id=”div-comment-7902″ class=”comment-body”> <div class=”comment-author vcard”><!– … –></div> <div class=”comment-meta commentmetadata”><!– … –></div> <div class=”filterDiv SELL show”> <div class=”container”> <p class=”wantosec”>I want to SELL</p> <p>SUP YALL im here to sell some stuff</p> <div class=”reply”><!– … –></div> … Read more

Delete/Spam Comment Button

Update So, I need to do an Ajax call to spam/delete/trash the comment I would actually also use AJAX, and secondly, I would use JS instead to add the action links — and personally, I think an edit_comment_link callback should return just one link (i.e. one a element).. but anyway, There are many ways to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)