How-To and Troubleshooting Canonical Links for Paginated Comments

Try specifying the priority for your function. You will also want to remove the default canonical link before adding your modified one. This worked on my site: function canonical_for_comments() { global $cpage, $post; if (!empty($cpage) && $cpage > 0) { remove_action(‘wp_head’, ‘rel_canonical’); echo ‘<link rel=”canonical” href=”‘ . esc_url(get_permalink($post->ID)) . ‘” />’; echo “\n”; } } … Read more

comments in Admin

The comments section is quite a big section to properly explain, but here are the basics First, here is the “Settings >> Discussion screen It is here that you set how and when comments will be displayed on the front end on posts. Here is a quick description of the most important setting Allow people … Read more

Second comments section for one post/page

When you add/display comments you could use a different comment_type $data = array( ‘comment_post_ID’ => 1, ‘comment_content’ => ‘content here’, ‘comment_type’ => ‘comment_type_a’, ); wp_insert_comment($data); This means you can query comments by comment_type depending on where you want to show them.