Comments link to Disqus in WordPress

Add to your theme functions.php

/* WordPress comments link to Disqus */
 add_filter( 'get_comments_link', 'callback_to_disqus', 10, 2 );
function callback_to_disqus( $link, $post_id ) {
 return get_permalink( $post_id ) . '#disqus_thread';
 }

 

Did you enjoy this post and find it valuable?

📡 Subscribe and sign the 📜 Guestbook!

Tip the author! Don't know what Bitcoin is yet?

1Mojitovwnpokdo8uLXvG93pEhBF6MNFoo

Tagged as: