For example;
1.option value = “1”
2.option value = “2”..
<select name=”example”>
<option value=””>– select–</option>
<option value=”1″>1.option</option>
<option value=”2″>2.option</option>
</select>
Besides in the order confirmation email, how do I retrieve the option entered by the client in WP back-end? On the order page
/wp-admin/post.php?post=48135&action=edit
for instance, I can’t see anything.
Thanks for your help!
]]>I’m searching for a possibility to enable or disable certain layouts of a flexible content field, in order to give the user only a few options for generating his content.
I tried to add a custom option to every layout being created. That did not work.
It would also be important to save this setting for each field in the acf.json, so i think creating a custom option for each layout would be the right way to go.
Any ideas how to achieve that?
Thx for your help,
Tom
]]>Any thoughts on how to conditionally show/hide the textbox? (use the CCAP entry to trigger the show/hide ???) –> www.ready911.com
Thanks much. I really enjoy the plugin.
https://www.ads-software.com/plugins/s2member/
]]><input type="text" name="option_name" value="<?php echo get_option( 'option_name' ); ?>" />
and then hook it into wordpress using register_setting(). I could then get its value thru get_option(‘option_name’). How should I do that with radio buttons?
All im looking for is simple “yes” / “no” radio buttons.
I can’t seem to figure out how to register my yes / no options in db and how to get its value thru get_option(‘option_name’).
register_setting( 'baw-settings-group', 'chooseyes', 'yes' );
register_setting( 'baw-settings-group', 'chooseno', 'no' );
<input name="chooseyes" type="radio" value="0" <?php checked( '0', get_option( 'chooseyes' ) ); ?> />
<input name="chooseno" type="radio" value="1" <?php checked( '1', get_option( 'chooseno' ) ); ?> />
]]>I think I already covered up how to create the additional menu on the admin panel, I just don’t know how to render it on the page. I tried adding <?php echo get_option(); ?>
on the page.php (the file I’m editing) but it doesn’t render the one I wrote on the custom option page I made.