WordPress.org

Ready to get started?Download WordPress

Forums

Get a sidebar from another blog? (2 posts)

  1. ColinD
    Member
    Posted 2 years ago #

    I can display a menu from another blog by switch_to_blog($blog_id) and then calling wp_nav_menu() and then restore_current_blog().

    Is there a way to do essentially the same thing but call get_sidebar($sidebar_name) and get the whole sidebar from that blog?

  2. Yes, but it can slow your site down. better to hard code things into the sidebar.php.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.