I have created an option array that stores a series of options, along with their values. The problem is that I want to ACCUMULATE these options and store them in the options database. Meaning I would be able to add multiple records to the database, instead of only updating a single option.
For example, I need to store testimonials that will allow the user to keep the name/testimonial for several different people (i.e. Brad's testimonial, Carrie's Testimonial, etc), so the option would need the ability to add multiple records.
Hopefully this is enough description. Here's my current options code:
add_option( 'testimonials_settings', $testimonials_options );
$testimonials_options = array (
'testimonials_active' => '0',
'testimonials_name' => '',
'testimonials_website_name' => '',
'testimonials_website_url' => '',
'testimonials_quote' => ''
);
if(isset($_POST['testimonials_update_options'])) {
$options = get_option('testimonials_settings');
$options['testimonials_active'] = $_POST['testimonials_active'];
$options['testimonials_name'] = $_POST['testimonials_name'];
$options['testimonials_website_name'] = $_POST['testimonials_website_name'];
$options['testimonials_website_url'] = $_POST['testimonials_website_url'];
$options['testimonials_quote'] = $_POST['testimonials_quote'];
update_option('testimonials_settings', $options);
}