Being said I’m not expert, I think this should work. You are using wp 2.1.3 right? So I assume you installed the widgets plugin, right?
Well I changed few things in the widgets.php located in ../wp-content/plugins/widgets/
Buckup everything, you never know, if something fails don’t blame me ok? ??
I did a search in the code for widget_text and found this:
function widget_text_setup() {
$options = $newoptions = get_option('widget_text');
if ( isset($_POST['text-number-submit']) ) {
$number = (int) $_POST['text-number'];
if ( $number > 9 ) $number = 9;
if ( $number < 1 ) $number = 1;
$newoptions['number'] = $number;
You can see the number 9, so I changed it to lets say 15
After that just few lines below that code there is this:
function widget_text_page() {
$options = $newoptions = get_option('widget_text');
?>
<div class="wrap">
<form method="POST">
<h2><?php _e('Text Widgets', 'widgets'); ?></h2>
<p style="line-height: 30px;"><?php _e('How many text widgets would you like?', 'widgets'); ?>
<select id="text-number" name="text-number" value="<?php echo $options['number']; ?>">
<?php for ( $i = 1; $i < 10; ++$i )
On the line (should be 885) with <?php for ( $i = 1; $i < 10; ++$i ) I changed number 10 to 16, remember, add one to the number of text widgets you set, so in my case I want 15 and this number is set to 16.
After that, one more step, look for:
function widget_text_register() {
$options = get_option('widget_text');
$number = $options['number'];
if ( $number < 1 ) $number = 1;
if ( $number > 9 ) $number = 9;
for ($i = 1; $i <= 9; $i++)
And as before change all 9s to your needs, as for sake of this example I set it to 15.
Save the files and test that everything works fine, if everything fails revert to the original copy.
I think this should do it, if any more knowladgable guy think this is wrong and I’m missing something please correct me.
Again, before you do anything I advise you to back up a copy of widgets.php file, well actually backup everything! Just in case.
Have a nice one, bye.