Thanks for the comment @Rarst! That was the issue. For whatever reason I had that extra sidebar method call in there and that was causing the problem.
register_sidebar(
array(
'name' => 'Sidebar'
)
);
register_sidebar(
array(
'name' => 'Sub Menu'
)
);
WordPress saves the data from the widgets in the DB but it doesn’t save the widgets themselves – that is controlled entirely by the theme.
Thanks!
Related Posts:
- Dynamically Register Sidebars For Each Top Level Page
- Missing argument 2 for a custom function widgets_init
- How to insert custom widget in custom sidebar in theme activation?
- Best practices regarding the creation of custom widgets?
- Custom Sidebar only on single post
- Why is it so hard to add a class to the tag in the sidebar widget?
- Register_Sidebar overwriting itself and doesn’t exist in global $wp_registered_sidebars;
- New checkbox in custom widget isn’t saving data
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- Add the title of a widget as an ID – for anchor links
- Can the new 4.8v text widget visual editor be removed?
- How to influence the information displayed on widget inside wp-admin
- How to add css class to cloud tag anchors?
- How can I get $id variable in widget’s form function?
- Using add_filter() in Widgets
- Show/hide Widgets in Dashboard Based on Current Advanced Custom Fields Option
- How to create a widgetized sidebar for every category dynamically?
- remove the wrapping of text widget or
- Check if has any sidebar active on current page
- remove from text-widget
- Programmatically Add Font-Awesome Icons to Category Widget
- Authors details such as social media links, emails etc → Is this Meta or something else?
- Customising widget titles/headings in WP 5.8
- Change a sidebar name?
- Widgets Section not displaying in theme customizer
- add sidebar area to header of child theme
- display most popular tags in two columns
- Displaying Widgets
- What is the most efficient method for loading widgets in functions.php
- Advice: Template structure – php blocks in sidebar or someting else?
- Ajaxing function in widget class
- Make “sidebar template” the default template for new pages
- Increment price for Woocommerce Minicart [closed]
- Missing argument 3 for wp_register_sidebar_widget()
- is_dynamic_sidebar always returns true while using Jetpack visibility
- Adding widget to dashboard with wp_dashboard_setup not working
- Right way to update widget on dynamic new input field
- Passing values from a widget to a function within a plugin
- Override widget in function WordPress
- Custom random quote widget breaks when used in multiple sidebars
- Display post shortcode content in the sidebar?
- How can I make a widget shortcode to control all the widgets?
- Replace a menu with widget or a custom template file programmatically
- Custom taxonomy widget in admin area
- Dashboard widget custom positioning?
- WordPress Shortcode function display outside of widget
- Get rid of the widget Item Class=”widget-item”
- Is `is_sidebar_active()` deprecated, and showing error?
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- Can’t Write Custom Widget Code In One ECHO
- The correct way to add a JavaScript in the functions.php [closed]
- Passing user enetered value in widget: number of words, for example
- Create a Woocommerce product widget with category filter
- Add element to widgetpage
- Best way to disable sidebars on posts (only)?
- “All posts” in the category widget
- widgets not working
- How to echo Widget Title in Custom Frontend-Template Box
- the_widget() inside functions.php
- How to conditionally add a widget via a hook in functions.php
- Creating a custom wordpress widget and stopping js from running twice(once in active widget once in widget selector)?
- How Do I include/Import a Custom Widget from the Parent theme into My Child Theme?
- Add a select-option to the default widgets
- Multiple, Dynamic, Sidebars Problem – First Sidebar not working properly
- Add a custom function to widget code
- Include widget file in functions.php of child theme
- Enable accessibility mode in widget as default
- How do you insert code into the sidebar?
- Widget is displayed in two places
- Trying to change widgets h-tags
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- my wordpress doesn’t save items to customized widget area
- Copying a widget class to functions.php results on a blank page
- Change is_front_page() to is_page() to display ‘hero’ on entire site?
- How to add widget in main menu
- Adding A New Widget to WordPress Disables the Existing Widgets
- How can the searchform.php know if it’s used on a registered sidebar id ‘sidebar-1’ or ‘sidebar-2’?
- Trying to Add a LEFT Sidebar?
- Cannot access variables within a widget
- wp_nav_walker that interacts with widgets to setup mega menu
- Expanding a function to call a plugin or show a link
- WordPress Javascript Widget jQuery Dependency Issue
- Register a widget area when a theme option has been saved?
- unregister_sidebar in child theme not working
- Additional Sidebar
- Give a function a unique ID
- Swap WordPress “Widget Area” based on Page Template
- Determining a Widget Instance and Sidebar Location?
- Display WooCommerce subscriptions for user [closed]
- Best way to add internal link in widget
- Post thumbnail not showing in WP admin area for custom post type
- How can I grab the video id of youtube?
- Passing variable as add_shortcode argument
- If ACF field is empty show different value [closed]
- Auto log in hook is requiring a page refresh
- Add a mature content warning to first-time visitors
- Reference multiple style sheets, clearing styles for permalink page, custom fields for css
- Syntax for a function in order to get post’s title in JSON encoded response [closed]
- Comment Function
- Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?