Custom post type updated to support comments, yet comments don’t appear

You can use a function called add_post_type_support Hook into init after the post types have been created, and add support for comments. add_action(‘init’, ‘my_cpt_add_excerpt’, 100); function my_cpt_add_excerpt() { add_post_type_support(‘mycpt’, ‘excerpt’); } …where mycpt is the name of your custom post type. If you want to do it cleanly, you can always deregister the custom post … Read more

Make custom WordPress comments list

You have just created the template. You still need to create the entire function of the form. It would be easier to just copy a comment.php and then edit it out with some CSS to get it to look like what you want it to. The link below is for a default comment.php that should … Read more

Modify comments_popup_link output

You can replace __( ‘No comments’, ‘textdomain’ ) with __( ‘<span>No</span> comments’, ‘textdomain’ ), there is nothing that stops you to do it. In general, HTML inside translatable strings are not recommended but if you really need the span tags, you have not other choice to add them server side. I strongly recommend to think … Read more

How can I eliminate all comments going into moderation?

There are essentially two scenarios here: The behavior is technically correct, you interpret configuration incorrectly The behavior is technically incorrect, as caused by something Unfortunately there are a lot of moving part in processing the comment submissions. The part most relevant to moderation is in check_comment() function. It checks: if moderation is enabled if comment … Read more

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