WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the plugin Top Contributors. That's very helpful for all blogs. But the problem with this plugin is: it is not integrated with custom post types.

How could I extend the plugin to do that?

share|improve this question

This plugin hasn't been updated in almost two years, so you should consider finding a new one.

That said, in this cases you have to open1 the plugin files and search for some string related to your issue, e.g., post_type.

You'll find that in the file functions.inc.php, it has two occurrences of:

AND a.post_type = 'post'

Change that to:

AND ( a.post_type = 'post' OR a.post_type = 'YOUR_CPT_SLUG' )

Not sure if that's the only thing that needs to be changed, but now you should be able to further inspect it and locate other parts that need modification.

1: Software for WordPress Theme and Plugin Development?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.