Hi,
try this. On that same file (wp-includes/widgets.php), find “function wp_widget_recent_entries($args)” and at the very beginning of that function add the snippet below so it become:
function wp_widget_recent_entries($args) {
if(is_home())
return;
(.. the rest of the function code..)
It works in my case, I hope it works for you.
Cheers.
Works great for me, too! Thanks.
Well, how about not just return’ing, but doing something like
return wp_widget_text();
Is that a correct way to substitute another widget for a hidden “Recent Posts”?
If so, how is the specific text widget selected out of all configured?
I’ve added
if(is_home())
return (widget_show_ngg_slideshow($args) + wp_widget_text($args, 3));
and it seems working 😉
[quick shameless plug for my own plugin]
rather than edit the widget code, use my ‘widget logic’ plugin
http://wordpress.org/extend/plugins/widget-logic/
This plugin gives every widget (even widgets lacking controls) an extra control called “Widget logic”.
This text field allows you to specify any WP conditional tags logic to set when the widget appears. Use any standard Conditional Tags and even combine them.