Created
August 1, 2015 14:14
-
-
Save iledcom/f5edaf6d3e98e26a07e2 to your computer and use it in GitHub Desktop.
WordPress get theme_options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$options = get_option('sample_theme_options'); | |
echo $options['phonetext']; | |
?> | |
// from theme-options.php | |
<input id="sample_theme_options[phonetext]" class="regular-text" type="text" name="sample_theme_options[phonetext]" value="<?php esc_attr_e( $options['phonetext'] ); ?>" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment