Hi,
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.
Hi
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
wp_reset_query();
}
This worked form me.
Best.
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.