WordPress.org

Ready to get started?Download WordPress

Forums

Data from root site in child sites (4 posts)

  1. sccr410
    Member
    Posted 3 years ago #

    I am trying to setup a network of sites where all the child sites are really a sub section of the main site. For example, the main navigation of the root site is in the header of all the child sites. Theme wise, I cannot figure this out. I am also trying to make available other root site data in the child sites such as link lists.

  2. Maybe you'd be better off using categories.

    the only reason you'd use multisite for this is if you wanted completely separate admin areas, where users did not have access to other departments (sites).

  3. sccr410
    Member
    Posted 3 years ago #

    That is what I want. We are creating a website for a youth soccer club. Each team in the club can then manage their own mini site with team news, calendar, photo galleries, etc. However, the overall theme needs to be related to the club. Obviously we don't want team managers from one team editing content for another team. Trying to explain to team managers how to make sure they post content into a specific category or add a page as a child to another page is quite difficult (although you would assume it's quite easy). These are really novice web users and the separate admin ensures that things are a bit easier for them to understand.

    Anyway, I did figure this out. It took a lot of searching to finally find the answer:

    <?php switch_to_blog(1); ?>

    then

    <?php restore_current_blog(); ?>

    This did the trick in the header.

  4. Yep, that's the one.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.