The bt_theme_opts_page()
function handles your theme’s options, and in that function there is this line:
$theme_opts = get_option('bt_opts');
So your theme’s options are being stored in bt_opts
. To retrieve it, use the same code in your page.php
file. So you would need:
$theme_opts = get_option('bt_opts');
echo $theme_opts['content_width'].' sidebar will be '.(12 - $theme_opts['content_width']);
Related Posts:
- WordPress API Menu/Submenu Order
- What are the advantages and disadvantages of Option Tree over the Customization API?
- How do I add settings to the Background Options Page?
- How To Add New Option Types To Option Tree?
- Is it possible ( or advisable) to allow open access to the new theme customizer for potential clients?
- What WP folder can I use to write files to?
- WordPress Settings API error
- Add a dropdown to theme customizer
- Understanding wp_add_inline_style
- Add a new checkbox in theme options
- Best practice (forward compatibility) for theme options
- How to set the default value of a option in a theme?
- Where is default wp_head() implemented?
- WordPress settings API error when checkbox unchecked
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- What is the best way to export and import theme options?
- esc_url not working within add_settings_field callback
- How to remove menus section from WordPress theme customizer
- WordPress Errors in generated by theme check plugin [closed]
- Cannot update WordPress General Settings Site Title and Tagline
- Theme Options page not showing up in admin menu
- How to hook CSS file according to theme selection in the customizer section
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Change setting name in Customizer and keep the data
- Is there a way to activate different theme for specified users? [closed]
- after_setup_theme, Global Variable and Theme Customizer
- For best DB performance should I serialize all theme options together or by type?
- Creating Theme Options Page
- Location of theme options page menu icon
- WordPress add options to theme not displaying
- qTranslate with my own theme and settings
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- get_option in header.php not returning value from customizer
- Internal error 500 accessing Theme > Customize
- Can I have two different theme for two different language?
- How to add “Template” option in page attributes panel?
- How would you accomplish the following advanced settings page?
- Single Page Design, Storing in Theme Options
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- How to disable wordpress from overload my stylesheet styles with customizer styles
- How to enqueue javascript for WP Customize options sidebar?
- How do i place same widgets multiple time by default on theme activation?
- Is it possible to save more than one image to an option?
- correct tags for validating input types
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- Efficiency of wp_options vs a new table
- Change WordPress header color using customizer
- How do I use a color from theme options?
- How to make javascript work on theme options page
- Consequences if using PHP include TEMPLATEPATH?
- WP_editor doesnt apply wpautop on single line content
- Check if( selected() )
- Alignment Problem [closed]
- not getting API setting saved confirmation message after update on option page
- How do I merge 2 WordPress Themes?
- WP Customazation API doesn’t save the default Value
- using Options Framework – can “theme-textdomain” domain be changed?
- How add built-in textarea in theme development?
- How to get DB options format without saving? [closed]
- Let user to add input fields on theme option page
- Sample Theme Options page for Multisite – what to consider
- Customize Option Framework
- Creating an advanced searchform based on select boxes
- help needed for suit designing tool
- Related Post Category Filter
- WordPress custom menu can’t show 3. level submenu
- Gallery functionality in custom theme
- In wordpress customizer div still showing even if I hid it with javascript
- Customizer API Multi Sections in single Panel
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- using themename_the_custom_logo() in template-tags?
- I updated my own theme’s code and css
- Theme option page doesn’t save options
- How to customize the colors within a stylesheet using a WordPress setting
- Create settings field on button click
- how can I re-utilize and class on a child theme
- how to call options on front end and add logo
- how to create export / import theme options in wordpress without plugin
- Customizer_register theme options not saving
- Undefined index: custom_sidebars
- Create new sidebars trough admin post/page metabox
- Using Customizer value in an external PHP file inside a theme
- “No Data Received” error in Chrome every time i try to update the theme functions file
- Theme Options Doesn’t Work On WP Multisite
- WordPress two sidebar layout or theme
- Theme automatically inserting “more” tag on every post
- Theme Option’s Save Button is not working
- Custom widgets in theme option page
- wp_deregister_script was called incorrectly
- Undefined index: debuging error for theme option template snippet
- How to Disable Color Options?
- Turning WordPress Into full-featured website?
- How to make admin theme option with image slide show?
- Theme.json: creating different sections of the color palette
- Is it ok if I use this tag?
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- Remove nonindex meta tag
- TItle In Latest Post is not using H1 Tag [closed]