Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8998571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:03:14+00:00 2026-06-16T00:03:14+00:00

WordPress 3.5 I build a dynamic sidebar via WordPress register_sidebar documentation to which looks

  • 0

WordPress 3.5

I build a dynamic sidebar via WordPress register_sidebar documentation to which looks like:

$sidebar = array(
    'name'          => 'Main Side Bar',
    'id'            => 'Aisis_Side_Bar',
    'before_widget' => '<li>',
    'after_widget'  => '</li>',
    'before_title'  => '<h2>',
    'after_title'   => '</h2>'
);

register_sidebar($sidebar);

The problem is, when I go into the widgets section of the admin section to drag and drop widgets onto the sidebar, everything works. If I refresh or leave that page and come back the widgets are gone and the sidebar is empty.

They also do not show up on the front end.

Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:03:14+00:00Added an answer on June 16, 2026 at 12:03 am

    Posting here because it is too long for a comment, not really an answer.

    And then you have something like <?php dynamic_sidebar('Main Side Bar'); ?> in your template?

    There are two times I’ve seen WordPress widgets disappear, and both are related to the page doing everything via Ajax. The first is when you are only viewing the Appearance >> Widgets and you leave the page open for a long time, WordPress signs you out but the page keeps acting like normal, even though nothing is saving.

    The other time is when there are multiple admins. All widgets and their options get saved every time you click save on any widget, it doesn’t just save the info for the widget you clicked save on. So if another person is logged in as admin and is viewing Appearance >> Widgets, then you save your widget to “Main Side Bar”, it won’t show up in their screen unless they refresh Appearance >> Widgets. So now if they click save on any widget, it saves “Main Side Bar” as empty and “erases” your widget.

    Also, if you create multiple widget areas, be sure to add them below the other ones in functions.php. WordPress puts widgets in the proper area based on its ID number, not based on its name or the ID you set. So if “ABC” is the first widget area you register, then you drop some widgets in, then you go register a new area “DEF” above the other one in functions.php, ABC will now be empty.

    If none of those situations apply to you, you might want to try changing the ID to use hyphens just for the heck of it. Then start looking in your error log, disabling all plugins, making sure mod_security isn’t intercepting the post, stuff like that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to build a multilingual site with Wordpress. Everything should be multilingual
I am trying to build a menu in Wordpress that will look like this
I'm going to build a multi-user website, much like wordpress.com, that users can signup
I want to build a web site in wordpress. A web version like mysite.com
i want to know what wordpress build-in function you will use when sanitizing specific
I have a wordpress theme that has a build in shortcode for creating an
I want to build a widget for WordPress that simultaneously displays my latest Google
I will be using WordPress 3.0 to build numerous sites, roughly 300+. these sites
I am trying to build a form in WordPress and taking advantage of all
I'm looking to build a mobile version of a WordPress site and have most

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.