How to insert Comment metadata via REST API
How to insert Comment metadata via REST API
How to insert Comment metadata via REST API
Ordinarily WordPress only allows Editors and Administrators to moderate comments, and both roles require those capabilities. This page from the Codex does an excellent job of explaining roles and capabilities: https://wordpress.org/support/article/roles-and-capabilities/ You can manually create a new Role and assign to it only the capabilities you want the Role to have, so that those you … Read more
Draft / schedule comments?
This was fixed in 5.5.1, commit 48877: Correct the check for reply element existence in comment-reply.js. document.getElementById() returns null if no matching element was found, so the previous comparison didn’t work as expected.
This is not a bug. If you look at the comment starting at line 2100 of wp/wp-includes/comment-template.php in the wp_list_comments function, you’ll see that if the per_page argument is set and its value is different to that of the main wp_query, it’ll perform a separate comment query and display those, instead of the ones you … Read more
Simply go to Settings > Discussion > Other comment settings > then look for the pull-down menu that will let you reverse the order. As per this video: https://premium.wpmudev.org/blog/wp-content/uploads/2014/01/New-comments-first.webm
There’s a different posts and comments table per site, so not really. That said, you can and should keep track of blog ids they’ve commented on in a user meta to speed things up in the first round, and cache the formatted result in a separate usermeta to speed things up in subsequent rounds. These … Read more
The background is transparent, so it just inherits the styling of the parent comment.. Style the comment class.. #comments li.comment { background-color: #fff /* Default styling */ } Then do the more specific styling as you go down.. #comments li.odd { /* whatever */ } /* Style odd numbered comments */ #comments li.even { /* … Read more
See. http://codex.wordpress.org/Function_Reference/get_comments Set the orderby parameter to your desired value, possible values are. comment_agent comment_approved comment_author comment_author_email comment_author_IP comment_author_url comment_content comment_date comment_date_gmt comment_ID comment_karma comment_parent comment_post_ID comment_type user_id Refer to the link already provided for info on setting other parameters, and general examples.
Are you registering your CPT with comments in supports array of register_post_type()? From brief look at Disqus plugin code there is dsq_comments_template() function that checks for related stuff and it likely returns false if support for comments is not declared.