Title: [Plugin: WordPress Popular Posts] Custom post type support
Last modified: August 20, 2016

---

# [Plugin: WordPress Popular Posts] Custom post type support

 *  [Akshay Raje](https://wordpress.org/support/users/akshay_raje/)
 * (@akshay_raje)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/)
 * Hi Héctor,
 * WordPress-popular-posts is a brilliant plugin and it has a great userbase too.
   There have been requests of adding support for custom post type and one of my
   clients needs this feature.
 * I have gone thru the code and will work on a patch to add this functionality.
   If all works well, would you absorb this in your plugin so that others will also
   benefit from this effort?
 * Regards,
    Akshay
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

Viewing 15 replies - 1 through 15 (of 34 total)

1 [2](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/2/?output_format=md)

 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627775)
 * Hi Héctor,
 * Yes I do agree with Akshay custom post type feature is mandatory as I received
   same demand from different clients as well.
 * By the way we have added checkbox functionality in same plugin to achieve one
   of our client’s requirement. Héctor, if you say I can share that code with you
   so others can get helped, we have added feature in shortcode so when user will
   enable that checkbox from shortcode (by adding attribute) then it will work otherwise
   checkbox won’t appear on edit post page. 🙂
 * I appreciate you have created excellent plugin which helps us a lot!!!
 * Today I am facing trouble to resize image on 675×457 and its showing results 
   at 675×198 which is weird :/ I also tried to use “thumbnail_selection” by adding
   following code in functions.php but failed. 🙁
 * // Enable post thumbnails
    add_theme_support(‘post-thumbnails’);
 * and I also tried to change featured image dimentions from functions.php
 * define( ‘HEADER_IMAGE_WIDTH’, apply_filters( ‘twentyten_header_image_width’, 
   940 ) );
    define( ‘HEADER_IMAGE_HEIGHT’, apply_filters( ‘twentyten_header_image_height’,
   198 ) );
 * I hope you or somebody will be around to look at this post and help me as I have
   to fix this issue within next an hour.
 * Thanks,
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627963)
 * Hi guys,
 * Sorry for not replying earlier, been quite busy in the past few weeks and just
   checked the forums.
 * @Ashkay: sure, all contributions are welcome. Specially if it comes in form of
   patches to fix stuff / improve my plugin 🙂 Let me know if you need any further
   help.
 * @raheelayud: please do share your patch. I’ve been delaying this for far too 
   long and you guys would do me and everyone using this plugin a tremendous favor.
 *  [watermelonkid](https://wordpress.org/support/users/watermelonkid/)
 * (@watermelonkid)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627974)
 * Hey guys,
 * Just another vote for making this happen! Much appreciated for this great and
   very useful plugin–it will be invaluable once you can specify a custom post type!
 * -B
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627977)
 * Hey guys,
 * A quick update: I managed to get this working! It’s been implemented already 
   on the development version (not available yet) and it seems to be working just
   fine!
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627978)
 * Hey Héctor Cabrera,
 * I am sorry for the late reply. I have been busy finalizing couple of projects.
   I will find and get you that code in a day or two.
 * Thanks,
    Raheel
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627979)
 * Hi Raheel,
 * Sure, no problem! I’ve already managed to enable this functionality but I’d like
   to take a look into your mod. If your solution is better, I will implement it
   🙂
 *  [watermelonkid](https://wordpress.org/support/users/watermelonkid/)
 * (@watermelonkid)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627982)
 * [@hector](https://wordpress.org/support/users/hector/)/@raheelayud,
 * Any luck? 🙂 Sorry, I don’t mean to be pushy–but building a site and it would
   be awesome if the Rahellayud’s patch or your Hector’s update were available soon!
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627983)
 * Hey Héctor,
 * Once again sorry for the late reply! 🙂
 * Please find code file here:
    [http://www.sleekwebstudio.com/hector/](http://www.sleekwebstudio.com/hector/)
 * In [wpp] shortcode if you add “wpp_checkbox=1” attribute that will enable this
   feature and if you will not enable this then on each post edit page there will
   be message saying:
 * _“Please add “wpp\_checkbox=1″ in WordPress Popular Post [WPP] plugin shortcode
   to enable this feature.”_
 * Once you enable this feature then it will show check box on each edit post page
   we set its limit “2” so once you increase that limit it will give error/warning
   message that you exceeded the limit to set popular posts.
 * Once you download file please let me know.
 * Also if you like then please don’t forget us on next update. 😉
 * Let me know if you need anything else?
 * Thanks,
    Raheel Ayub skype: raheel.ayub [http://www.sleekwebstudio.com](http://www.sleekwebstudio.com)
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627984)
 * Hi watermelonkid,
 * Code is up there now lets wait for Hector to implement it. 🙂
 * Thanks,
    Raheel
 * P.S. [@h](https://wordpress.org/support/users/h/)éctor, I developed this feature
   to enable “manual popular” posts so admin can set whatever post they want to 
   show on frontend as popular post.
 *  [watermelonkid](https://wordpress.org/support/users/watermelonkid/)
 * (@watermelonkid)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627985)
 * Raheelayub,
 * Thanks! I was trying to look at the code you posted, but when I try to click 
   or download it, your server tells me not to download/open it directly. Maybe 
   you should zip it up?
 * -B
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627986)
 * Just right click on file name and click on “save link as / save file as” it will
   give you option to save it on your local computer. 🙂
 *  [watermelonkid](https://wordpress.org/support/users/watermelonkid/)
 * (@watermelonkid)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627987)
 * That’s what I did, and the file it saved didn’t have the code in it!
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627988)
 * Please check now! I just uploaded .zip as well.
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627989)
 * Hi guys,
 * I made some modifications / upgrades to the plugin over the weekend and can confirm
   that the custom post type filter works. I’m also working on other upgrades that
   I’m sure you all will appreciate, once I’m done with these will release the development
   version so you can try it out.
 * [@raheelayub](https://wordpress.org/support/users/raheelayub/): I’m against the
   idea of letting the site admin decide which posts should appear as most popular
   on the list. This is because I believe that what measures the level of success
   of a blog post is the interactions it generates with your visitors and regular
   readers (views and comments).
 * What you’re after is more like a Featured Posts thingy that would allow me, the
   site admin, to manually pick posts to showcase to my readers. I happen to have
   another plugin lying around that does this already, just haven’t published it
   yet since it needs more work to make it as flexible as WordPress Popular Posts.
 * I will, however, take your idea into consideration but just not to use it on 
   WordPress Popular Posts but on the new one. If this happens, I will credit you
   of course.
 *  [Raheel](https://wordpress.org/support/users/raheelayub/)
 * (@raheelayub)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/#post-2627990)
 * Héctor,
 * You are right about popular posts and it should come up based on views/comments
   of users but our idea was exactly what you understand it was featured post option
   inside popular posts because this is what client asked us to do! Before they 
   needed popular posts to show on home page but suddenly they requested that they
   want to select posts to display on home page rather its showing automatically
   so their users/ readers would read the best posts.
 * I know there are plugins available for featured posts but your plugin is more
   stable and good that’s why I suggested to add that option so if users are using
   this plugin then they shouldn’t need to go anywhere.
 * Thanks,
    Raheel

Viewing 15 replies - 1 through 15 (of 34 total)

1 [2](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/2/?output_format=md)

The topic ‘[Plugin: WordPress Popular Posts] Custom post type support’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 34 replies
 * 13 participants
 * Last reply from: [Tyler](https://wordpress.org/support/users/evpstud/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-custom-post-type-support/page/3/#post-2628031)
 * Status: not a support question