If you are using some custom global theme options, I’d set them in functions.php
. Then you access them from any template if you declare them global
first.
// functions.php
<?php
$aagt_fb_url="foo";
–
// template file like header.php, index.php, etc.
<?php
global $aagt_fb_url;
echo $aagt_fb_url;
Related Posts:
- get_option() vs get_theme_mod(): Why is one slower?
- Using update_option() and get_option() is echoing escaped strings
- Theme Options page with tabs
- Outputting results from select box option in options panel
- Display user HTML on website
- Need help understanding/coding with Settings API
- get option framework options returns Call to undefined function of_get_option()
- How to set a default theme option after installing theme?
- WordPress theme options framework, I can’t read them in my templates
- Multiple options in the options_value field of the wp_options table
- Theme options are they necessary
- The best place of the code for creating a robots.txt file
- How do I display a WP Option from an array?
- Blogname and Blogdescription in Pagelines DMS Options Panel
- What should I use to store options for a single blog on a network site?
- Delete Transient when clicking ‘Save Changes’ on options page
- Changing the layout of a custom options page
- Slightly modified options framework Colour picker
- wp_editor() fields on Theme Options Page not saving
- Adding a checkbox to the theme customizer
- Adding a description to theme customizer controls
- How To Add New Option Types To Option Tree?
- Best practices for a Style/CSS based theme options page?
- Theme Options Panels, What are some good examples from Frameworks or Premium Themes? [closed]
- Submenu pages delete settings from options array when saved
- Site Title and Tagline in Theme Options Page
- Where are a theme’s options stored and can I export them to be imported into freshly installed themes?
- Can I install Analytics before deciding on a theme?
- Options Framework options not being output
- Editor role cannot save custom theme options
- Two Ways Of Creating WordPress Options Pages
- WordPress Nonce and check admin referer help needed
- Upload multiple images via theme options [closed]
- Save Theme Options (options.php) From The Frontend
- Separate backend “Widgets” page for each language
- Theme options WP Editor
- How to mark an option as selected
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- Can’t save options
- How to add an alternative style sheet as a theme option?
- Disable image resizing on specific upload fields
- Put standard wordpress options into a theme options panel?
- How can I get my options in json response?
- Use of check_admin_referer with theme options and options.php
- WordPress custom options storing?
- How can I make my options in an array and store theme in WP options one DB row?
- Getting the ID of header image, even when set to random
- Theme Options page not saving data correctly
- Getting error to display radio button value in General Settings page
- Error: options page not found
- Only allow site url in text field using wp_kses/wp_filter_nohtml_kses?
- Additional custom header image
- Efficiency of wp_options vs a new table
- Options Theme – WordPress [closed]
- How to reset (clear) theme settings
- Settings API settings section not appearing
- How to save custom settings api fields with custom section fuction
- How to get of_get_option() inside the inc folder file
- Display and hide content using checkbox in Options Framework Theme
- How do I remove the page listing menu in the header in the Twenty Ten Theme?
- How to use WP Theme Option: Custom_Backgrounds on specific element?
- WP Page Options Array
- How can I create a rearrangeable list of items like OptionTree offers with the Theme Customization API?
- WordPress Theme Settings Page
- Bring page from sub menu to admin menu in option tree
- Update Specific Key Value in Complex `wp_options` object
- How to load dynamic option with ajax
- Cannot modify headers
- How to get functions.php to talk to options.php
- How to use checked() function with multiple check box group? How to properly sanitize that checkbox group?
- WordPress Options Framework, add to main menu not appearance menu
- Tabbed theme options query about add_settings_section callback function
- WordPress karma theme shortcodes not working
- WordPress built-in Custom Background
- Weird undefined index: id,std notices. How to fix it?
- Splitting an eCommerce store from the WordPress Theme
- How do I have my widgets in a Sidebar for my http://localhost/wordpress/
- Show multiple option in URL with Redux framework in front end
- Theme options on CPT
- Echo content based on current tabbed page in theme options
- Build Form on Dashboard
- How to make a hyperlink conditional according to whether you are logged in or not
- How to give site owner the ability to change to footer text via theme options (1 post)
- Make Theme Options Menu item more easily / directly accessible
- Is there a better way to define options for custom fields in an admin panel?
- File input returns null in theme options array
- Can’t add options to db
- Set option to show the slider in post – WP
- Cannot retrieve theme options on index.php
- Trouble saving wp_dropdown_pages()
- Theme Option’s Save Button is not working
- Notice: Undefined index: in options-framework.php
- Notice: Trying to get property of non-object in options.php
- Is it good idea to combine Options FrameWork with Hybrid Core Framework
- How to support special characters in text field?
- Multiple Custom Headers
- Can I call Options Framework in footer.php?
- Where to add the code for an outer container in a theme?
- Options.php loop won’t show!
- Theme Options wp_editor breaks with 6.0.2 update