I’m assuming $settings
is an assigned variable elsewhere in your code?
If so, then ya gotta globalise it son (variable scope in PHP):
function outputFavIcon() {
global $settings; ?>
And spell it right too 😉
<?php if ( isset ( $settings['generel_settings' /* <- typo? */]['fav_icon'] ) ) {
Related Posts:
- How do I add settings to the Background Options Page?
- How would you accomplish the following advanced settings page?
- Consequences if using PHP include TEMPLATEPATH?
- not getting API setting saved confirmation message after update on option page
- Tabbed theme options query about add_settings_section callback function
- Create settings field on button click
- What are the advantages and disadvantages of Option Tree over the Customization API?
- 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?
- WordPress Settings API error
- Add a dropdown to theme customizer
- Add a new checkbox in theme options
- How to add Color Picker in Theme Options for the following?
- Best practice way to implement custom sections into a WordPress theme
- How to set the default value of a option in a theme?
- Add a preview to a WordPress Control Panel
- WordPress settings API error when checkbox unchecked
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- Settings API enable default settings on theme install?
- How can one utilize a variable as a callback function name for add_settings_field
- Whats the safest way to output custom JavaScript and Css code entered by the admin in the Theme Settings?
- Cannot update WordPress General Settings Site Title and Tagline
- Theme Options page not showing up in admin menu
- 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
- after_setup_theme, Global Variable and Theme Customizer
- Creating Theme Options Page
- Location of theme options page menu icon
- WordPress add options to theme not displaying
- Create wordpress header with custom logo in between the menu splitting the menu into two equal parts [closed]
- Access theme options in templates
- Can I have two different theme for two different language?
- Using an if statement in the theme customizer page
- Single Page Design, Storing in Theme Options
- How can I make my options in an array and store theme in WP options one DB row?
- How to show custom meta_key in each li of menu
- How to: JQuery multiple wordpress media uploader buttons in the same options page?
- What is the safe way to print tracking code / pixel code before tag or tag
- Following Web Performance Optimization techniques to output static and dynamic css
- 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
- How to support letting users add their OWN logo to a custom theme?
- How can I change the theme of different posts using a plugin?
- How to escape html generate by a loop
- How to Create custom xml file for demo content for custom theme?
- How to escape multiple attribute at once in WordPress?
- WP_editor doesnt apply wpautop on single line content
- Is there any solution, ide/tool etc., for automatic escaping for WordPress?
- Check if( selected() )
- How to safely return the HTML?
- Alignment Problem [closed]
- How do I merge 2 WordPress Themes?
- WP Customazation API doesn’t save the default Value
- How add built-in textarea in theme development?
- How to get DB options format without saving? [closed]
- Setting conditional background image from meta value
- Sample Theme Options page for Multisite – what to consider
- Customize Option Framework
- How To Display Value from Theme Options Field in Front End Template?
- Update Specific Key Value in Complex `wp_options` object
- help needed for suit designing tool
- Why my theme option not working?
- Related Post Category Filter
- Gallery functionality in custom theme
- Warning: This page allows direct access to your site settings. You can break things here. Please be cautious!
- Customizer API Multi Sections in single Panel
- WordPress theme options checkbox default checked state
- WordPress theme settings not saving
- 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?
- Correct form of escaping and localization – functions.php breadcrumbs
- I updated my own theme’s code and css
- Theme option page doesn’t save options
- wp_kses allow checkbox class and checked
- how can I re-utilize and class on a child theme
- how to call options on front end and add logo
- Customizer_register theme options not saving
- How can I include the js and css file of my custom theme dynamically in header.php
- Undefined index: custom_sidebars
- Create new sidebars trough admin post/page metabox
- Using Customizer value in an external PHP file inside a theme
- Let users to add any number of input fields in the theme option page
- trying to figure out how to use more that one image upload in the same section in theme customizer
- 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
- Turning WordPress Into full-featured website?
- 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]