[wp-trac] [WordPress Trac] #22370: dynamic_sidebar does not consider switch_to_blog
WordPress Trac
noreply at wordpress.org
Tue Nov 6 04:33:24 UTC 2012
#22370: dynamic_sidebar does not consider switch_to_blog
-----------------------------+--------------------------
Reporter: tarasm | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: Multisite
Version: 3.4.2 | Severity: normal
Keywords: |
-----------------------------+--------------------------
On the main site of my WordPress network, I have a header that I would
like to show on all other sites of the network. The main site uses the
parent theme and all of the other sites use child themes. In header.php of
the parent theme, I'm using ''switch_to_blog'' function to load Navigation
Menus from the main site in the header of the other sites. This is working
perfectly.
'''The Problem'''
I also have a sidebar in the header that I would like to manage on the
main site as I do with the navigation menu. Unfortunately, this doesn't
work at all because dynamic_sidebar function does not take into
consideration switch_to_blog. I get no output instead of showing sidebar
from main site.
'''Others with same problem'''
Boone Gorges did a good job of explaining this problem on WordPress
Stackexchange on the question titled:
[http://wordpress.stackexchange.com/questions/48123/sharing-dynamic-
sidebars-across-multisite-blogs Sharing Dynamic Sidebars across Multiple
Blogs].
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22370>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list