Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

Your Answer

 
discard

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.