There are two ways to solve this:
1 Keep the mods as they are and use get_theme_mod
in stead of get_option
2 Store the mods as options by changing the setting:
$wp_customize->add_setting( 'social_link_facebook' , array(
'default' => '',
'type' => 'option'
) );
Related Posts:
- Add a dropdown to theme customizer
- How Can I Create a List of Values to Be Iterated Through via WordPress Customization API?
- Internal error 500 accessing Theme > Customize
- How to enqueue javascript for WP Customize options sidebar?
- Alignment Problem [closed]
- Customizer API Multi Sections in single Panel
- 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
- How to show associated fields if checkbox is checked in customize widget screen using wp_customize?
- WordPress API Menu/Submenu Order
- 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?
- Theme Customizer : how to create multiple-level panel
- Allow Shortcode in Theme Customizer
- Setting multiple default background images?
- Best practice way to implement custom sections into a WordPress theme
- Editing the custom background CSS
- Is the theme customizer slowing down my site?
- Best practice (forward compatibility) for theme options
- WordPress Customizer Typography: How to load just the unique Google Fonts?
- How do I get a parent theme modification from a child theme?
- How to remove menus section from WordPress theme customizer
- “Display Site Title and Tagline” checkbox not working?
- How to set page template on front using starter content?
- How to hook CSS file according to theme selection in the customizer section
- How i can get widgets areas working in customizer?
- 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
- How to disable automatic colors in the Twenty Twenty theme?
- WordPress not registering Theme Customization Section
- Set multiple templates per post
- qTranslate with my own theme and settings
- WP_Customize_Color_Control omitting # symbol
- Can I have two different theme for two different language?
- Using an if statement in the theme customizer page
- How to add “Template” option in page attributes panel?
- Single Page Design, Storing in Theme Options
- Edit footer via customizer
- Folder name for a pro version of a WordPress.org theme?
- Customizer: save setting/control content to post/page
- Is accessing theme and using customizer GPL distribution?
- How to disable wordpress from overload my stylesheet styles with customizer styles
- correct tags for validating input types
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Customizer – loading settings/controls/sections/panels based on a id/page id
- Change WordPress header color using customizer
- How can I change the theme of different posts using a plugin?
- Theme Customizer not displaying saved values in wp_head (CSS)
- Copying the theme style files and images to duplicate the website but with a difference
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Customizer: get_preview_url() inside customize_save_after hook
- WP Customazation API doesn’t save the default Value
- How add built-in textarea in theme development?
- Customize Option Framework
- help needed for suit designing tool
- Related Post Category Filter
- Let user to upload multiple time
- How to copy page/post from one theme to another?
- How to change listing type permlink?
- In wordpress customizer div still showing even if I hid it with javascript
- Theme does not allow shortcodes
- What is an alternative to not using child theme to customize a WordPress theme?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- How do I remove header/page-title image in farvis theme? [closed]
- How to show some of category in wordpress
- using themename_the_custom_logo() in template-tags?
- Is there a way to create sections under “Colors” panel in the Theme Customizer?
- How to customize the colors within a stylesheet using a WordPress setting
- Correct was to customise theme using get_theme_mod in scripts
- how can I re-utilize and class on a child theme
- Customizer_register theme options not saving
- Theme customizer live preview JS- Trying to bind to an html image url without luck
- trying to figure out how to use more that one image upload in the same section in theme customizer
- WordPress two sidebar layout or theme
- Theme automatically inserting “more” tag on every post
- Turning WordPress Into full-featured website?
- How to make a multilingual wordpress site to be translated one-to-one without much effort and without using translate?
- TItle In Latest Post is not using H1 Tag [closed]
- How to add custom css file in theme?
- How to remove search bar from a wordpress theme? [closed]
- Get url of thumbnail from the media uploader
- Front End Post Submit Form
- WordPress Theme customisation CSS
- Displaying wp menus by name without using theme locations
- Custom Script Section Only Echoes Text
- WP Customize refresh problem
- How can I make my options in an array and store theme in WP options one DB row?
- How to support letting users add their OWN logo to a custom theme?
- Does code in function.php differ from theme to theme
- Change image size depending on page
- Tabbed theme options query about add_settings_section callback function
- How to make a function occurs for one time?
- How to enable admin to upload multiple images to support header carousel slider theme in WordPress?
- WordPress Custom font not found
- Customizer API way function is_customize_preview() works only in main page?
- Magnific Popup – Add Caption to Images
- Why do WordPress developers use so many opening and closing PHP tags when developing themes? [duplicate]
- How to update my own theme?