Widget instance options not showing correctly

i finally found the answer, its actually not a problem with the code i posted. its in the update() function. i have some validation code function update($new_instance, $old_instance) { $instance[‘title’] = esc_attr(strip_tags($new_instance[‘title’])); if (is_int($new_instance[‘number_products’])) { if ($new_instance[‘number_products’] > 0) $instance[‘number_products’] = $new_instance[‘number_products’]; else $instance[‘number_products’] = 1; } else { $instance[‘number_products’] = $old_instance[‘number_product’]; } return $instance; … Read more

Plugin Creation: Overriding upload_max_size and post_max_size

First, the setting you want is ‘upload_max_filesize’, not ‘upload_max_size’. Second, both of those settings are PHP_INI_PERDIR, which means they can only be set with php.ini, .htaccess, or httpd.conf. For more information see the PHP documentation on php.ini directives and their configuration. I would suggest using .htaccess, personally. You might look into writing the information directly … Read more