Multisite Widgets Context

Description

A WordPress Multisite Plugin that runs a Widget in a context of another site that belongs to the network

How it works

On every Widget, this plugin adds a select menu that you can choose on which site context you will execute the widget.
It also has a option to pull the widget data from target site, you can check this option if you want to populate the data of widget that depends of the context site, with content from the target site. See Screenshots to understand better.

Contribute

You can contribute to the source code in our GitHub page.

Screenshots

  • A Recent Posts Widget configured to execute on another site context.

  • A Nav Menu Widget with select populated with data from target site due to checked checkbox

Installation

To install just follow the installation steps of most WordPress plugin’s:

e.g.

  1. Download the file multisite-widgets-context.zip;
  2. Unzip the file on your computer;
  3. Upload folder multisite-widgets-context, you just unzip to /wp-content/plugins/ directory;
  4. Activate the plugin on the Plugins menu in WordPress;
  5. Be happy.

THIS PLUGIN ONLY WORKS WITH MULTISITE

FAQ

Installation Instructions

To install just follow the installation steps of most WordPress plugin’s:

e.g.

  1. Download the file multisite-widgets-context.zip;
  2. Unzip the file on your computer;
  3. Upload folder multisite-widgets-context, you just unzip to /wp-content/plugins/ directory;
  4. Activate the plugin on the Plugins menu in WordPress;
  5. Be happy.

THIS PLUGIN ONLY WORKS WITH MULTISITE

Can I use this plugins without multisite

No, It does’t make sense to use this plugins without multisite.

I’m trying to run a shortcode in a context of another site and it’s not working.

As switch_to_blog does not switch plugins or theme, you need the code for shortcode running on the site that you are EXECUTING THE WIDGET. If the shortcode is provided by a plugin, just activate the plugin on the site which you want to run the widget.

Reviews

Thank You!

I’ve spent hours looking for a plugin to do this and finally came across this. You have no idea how much this is appreciated. And to think that such a useful plugin is free… wow! I hope you continue maintaining this… some lives now depend on it. 😀

Thanks again!

Great

Great plugin for non realised multisite functionality.
Thank you Nicholas!

Works right out of the box!

I installed and it worked! No muss, no fuss. All the other similar plugins I found are years old. Hopefully, this will be looked after and upgraded regularly. Brilliant!

Does not work, no support

I can not understand the good rating.
In support forum, there are two posts, four months old, that say the same thing. But no answer…

Read all 11 reviews

Contributors & Developers

“Multisite Widgets Context” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.1.2

  • Fixing a bug where a PHP Fatal error could happen on the append_current_site_context() method.

1.1.1

  • Fixing a bug where the selected site context wasn’t being persisted in some edge cases

1.1.0

  • WordPress 4.5 Compatibility
  • Code Refactoring to better meet WordPress standards
  • Security enhancements: escaping and sanitization
  • Performance Improvements: Caching get_blog_ids method

1.0.3

  • Fixed a bug when a new widget is added to a sidebar and the current site isn’t checked by default
  • WordPress 4.3 compatibility