Category: wp widget

Limit archives widget to display only 2 years

archives widget limit set

function my_limit_archives($args){
    $args['limit'] = 12;
    return $args;
}
add_filter( 'widget_archives_args', 'my_limit_archives' );

Advertisements