(Who to follow) Twitter widget

It looks like you’re saving a PHP std object in the database. It might be an array, I’d have to check how WordPress saves those. In either case: If you’re using add_user_meta() or update_user_meta() to insert the user meta into the database (and you should be), then using get_user_meta() with the third parameter set to … Read more

How to create sidebar from “scratch”?

Technically “off topic” here as your actual question is open-ended and there is lots of room for opinion. https://wordpress.stackexchange.com/help/dont-ask Sidebars and widgets are a perfect way to organize these elements. Keep in mind these are simply tools to organize blocks for repeated use in various locations. So, officially, my answers to your two questions are: … Read more

is_active_sidebar() problem

In this case I would simply check if the slider plugin is activated – so your conditional statement would look like this: <?php if ( is_active_sidebar( ‘sidebar-hero’ ) && is_plugin_active( ‘slider-plugin-dir/slider-plugin-base-file.php’ ) ) : ?> wp_get_sidebars_widgets in your case works as expected – it checks for the widgets in wp_options table and keeps the widget … Read more

Make widget with media upload repeatable

Naive repeatable are impossible with widgets as the data structure and UI tend to be rigid. On the face of it, the way you describe it in the question, you can just use the media library to select multiple images instead of one, and keep them as a list of attachment IDs. You should take … Read more