I am making a wordpress plugin but I am having difficulty accessing the results from an array in a function Radio Box: [CODE] <!-- First radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="satellite" <?php checked('satellite', $options['RADIO_GROUP']); ?> /> Satellite</label><br /> <!-- Second radio button --> <label><input name="posk_options[radio_group_two]" type="radio" value="hybrid" <?php checked('hybrid', $options['RADIO_GROUP']); ?> /> Hybrid</label><br /> [/CODE] [CODE]function MY_function ($atts, $content = null) { ... ), $atts)); $src = "...ptype=".$RADIO_GROUP."..se"; return '...'; }[/CODE] Ive edited out some of the needless code and just put ... there. The code above does not work. I am trying to get the result from the …

Member Avatar
Member Avatar
+0 forum 3

I posted previously trying to find out how to get my data that is stored in a database, but then Ive thought what if i just use arrays? I have some code here on my Wordpress Plugin Options page which allows a user to enter a value and save it. How Can I save the value as an array so that I can call on it later? [CODE]<div> <h2>My Plugin Options</h2> <Form> Define Height of Box <input type="textbox" name="n1"> <p> <input type="submit" value="<?php _e('Save Changes') ?>" /> </p> </form> </div>[/CODE] Thanks

Member Avatar
+0 forum 0

I am a total noob at php and I am creating a basic wordpress plugin for a site. I have a function [CODE]function My_Function_2() { ?> [/CODE] Then I have an input inside a div coming from an options page: [CODE]<form method="post" action="options.php"> <?php wp_nonce_field('update-options'); ?> Define Box height <table width="350"> <tr valign="top"> <th width="200" scope="row">Enter Box Height</th> <td width="50"> <input name="Box_height" type="text" id="Box_height" value="<?php echo get_option('Box_height'); ?>" /> (ex. 400)</td> </tr> </table>[/CODE] But when I try to $box_height to use in a url later on, it doesnt work. If I set box_height to a value using an array it …

Member Avatar
Member Avatar
+0 forum 9

The End.