How does add_action ‘comment_post’ work?
How does add_action ‘comment_post’ work?
How does add_action ‘comment_post’ work?
There’s a pre-release Windows Phone SDK right now for Disqus, and you might want to sign up and try that out: http://help.disqus.com/customer/portal/articles/1222036 Generally speaking it’s not difficult to sync up discussion threads between a mobile app and a WordPress site.
After some further investigation I found that removing and re-installing the plugin has no negative effect on existing comments and resolved the issue.
I had a response from Disqus Support regarding this issue: Hi Scott, To clarify, the Disqus moderation panel in WordPress is not intended to be used with https. If you would like to use the moderation panel in https you’ll need to go to the Disqus moderation panel directly at: https://scotthelme.disqus.com/admin/moderate/#/approved If you have any … Read more
Use get_comments_number() to get … well … the number of comments. In your theme’s comments.php you can use its return value to do something: $num = (int) get_comments_number(); if ( 0 === $num ) echo ‘Be the first! But please don’t write just “First!”’; elseif ( 100 < $num ) echo ‘Yeah, add some noise. … Read more
Comments are bound to post IDs. So you need a post ID for each user. Register a custom post type, make it not public and create one hidden post for each user. Store the ID in an user-meta field. Now assign the comments to that post’s ID. Do not use comments_template(). That’s an ugly monster, … Read more
Can’t post comment to blog in wp-multisite
There’s a filter for that: get_comments_link. Refer to source: return apply_filters( ‘get_comments_link’, $comments_link, $post_id ); In an appropriate place (such as a site functionality Plugin), just add a filter via callback: function wpse123906_filter_comments_link( $comments_link, $post_id ) { // Return your custom link return get_permalink( $post_id ) . ‘#disqus_thread’; } add_filter( ‘get_comments_link’, ‘wpse123906_filter_comments_link’, 10, 2 );
when you use jquery in wordress it is better to avoid using $() and use jQuery() instead. Don’t know the actual reasoning behind that but it is probably done that way to avoid collisions with other libraries that use the $ syntax.