Category Posts Widget
Not working with custom posts type (4 posts)

  1. sugardaddy
    Posted 4 years ago #

    I'm trying to use this plugin with custom posts type of a category (wordpress taxonomy).
    This does not work...
    My question is : Am I right saying that ? Is it planed to support CPT ?

    Thanks a lot for creating nice plugins.


  2. ginez_17
    Posted 4 years ago #


    I found out that when this plug in is used with Custom Post Templates it shows a sort of weird conflict:

    Comments are posted on the wrong posts.

    wp_reset_query() missing maybe?

    Any idea on how to fix this?

    Thanks in advance.

  3. ginez_17
    Posted 4 years ago #


    To whoever is interested adding a wp_reset_query(); at the end of the plugin function function widget($args, $instance) fixed the issue.

    function widget($args, $instance) {

    // the function does its stuff here
    // add the line below just before closing the function


    This worked form me.


  4. jessecd
    Posted 4 years ago #

    I've had the same issue with custom post types. As far as I can tell, this plugin only works with posts. The fix that works for me is here - http://wordpress.org/support/topic/plugin-category-posts-widget-add-support-for-selecting-custom-post-types.

    I'd love to figure out a way to actually get this, or something similar, into the plugin. I'd prefer not to kill my upgrade path and custom post types are so prevalent these days that I don't see a reason not support them. Any help in getting the author's attention on this would be appreciated. I don't spend a lot of time contributing code to plugins so I don't really know how to get this included.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Category Posts Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic