Incude comments in search

Whether you put custom code in your theme’s functions.php or in a plugin, you’re still using custom code. So I’m going to ignore your “without a plugin” requirement and instead suggest these two plugins: Search Everything Relevanssi There is absolutely no reason to use custom functionality in functions.php rather than a plugin. When you’re asking … Read more

comments are going to spam

You should not add http:// or wwww. to your Comment Moderation or Blacklist boxes. This will send all comments to a pending status, or WP removes them. If you want stuff to be blacklisted that contains a certain url, add a fully qualified domain name.

Comments on pages not appearing, even though I enabled them

As @SaurabhShukla mentioned in one of the comments, the problem was probably the theme. I use Virtue. Its great and got tons of options, and in one of them, under misc settings (a place which is totally unlooked-for), sits an option/out button. Hope this will help someone else in the future. Thank you all for … Read more

Reply to a specific comment?

Yes, it is possible.You can integrate a custom template for comment detail page where users will start thread on particular comment. You can create a URL using add_rewrite_rule. also add query vars for URL. Here you can get that query var and use template_redirect hook to to include a template by apply condition for that … Read more

Getting Post Permalink Outside of Loop Not Working

According to: http://wpseek.com/get_comment_count/ $single is the post ID. Try: public function get_comment_count($single){ if (isset($this->params[‘comments’]) && $this->params[‘comments’] == ‘yes’){ return ‘<div id=”disquscomments”><a href=”‘.get_permalink($single).’#disqus_thread”>Comments</a></div>’; } else { return null; } }

How do I call comments_template(); from a plugin file?

from the wordpress codex: comments_template(); //Loads the comment template. For use in single Post and Page displays. //Will not work outside of single displays unless $withcomments is set to “1”. my bet is that you need that ->$withcomments thingy <?php global $withcomments; $withcomments = true; comments_template(); ?>