WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Best way to share data with main site? (4 posts)

  1. jay0316
    Member
    Posted 1 year ago #

    It doesn't look like my question posted. Posting again just incase....

    I have a multisite installation. My main site has a location page and each location has a child site in the multisite installation.

    I was thinking I might be able to create a custom post type called location or something for each of the child sites and then use advanced custom fields to add fields like address, city, state, phone, email, schedule etc. Then use a xml or json feed to send that info to the parent site, which would parse it and display on the locations page.

    Is there a better way to do this? Any plugins that would help?

    Thanks!

  2. We had a server glitch :/

    Are the child sites only locations?

    It's almost something you'd want to add as a site settings (admin menu on each sub site) and then use switch_to_blog to loop through and pull that info.

  3. jay0316
    Member
    Posted 1 year ago #

    Yes, the child sites will be locations and will have information specific to that location. About page, contact, photos etc.

    I have a settings page that I created manually that I can use as an example (I think I followed a tutorial on WPtuts awhile back), but was wondering if there are easier ways for creating those site settings pages?

    Also, I remember reading that the switch to blog can be resource intensive...is that still the case? I'm using it to add the main sites navigation menu at the top of the sub sites as well.

    Thanks!

  4. Less the case than it was. It's safe enough that unless we're talking 50 sites or so, you're fine.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.