WordPress.org

Ready to get started?Download WordPress

Forums

Integrating WordPress with Your Website (Is this possible with Multisite?) (6 posts)

  1. jahue
    Member
    Posted 1 year ago #

    http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

    I have used this several times with individual WP installs but I was wondering is this possible with WP-Multisite installs? I have a client that is running an extensive WP-MS install and would like to utilize the process.

    If you could point me to some examples/tutorials I would be eternally grateful!

    Thanks
    J

  2. It's possible with Multisite, but you have to use a lot of switch_to_blog() calls, which makes your site run slower.

    What kind of integration are you doing? Do you just need to pull in some posts or...?

  3. jahue
    Member
    Posted 1 year ago #

    Most of the integration is things like employee info and forms that are used on the WP side. Most are stand alone pages not running posts. I use RSS to fetch posts but they want some backend tools to work on their non WP sites.

    One example is they have an extensive employee database with pictures, links, and other information. This is all managed on the WP side with several plugins by employees. It's easy for us to use the built in tools to display the information on a WP page. They would like to have the page information displayed on one of their non WP pages, but still managed on the backend with WP. it's kind of like a large about us or employees page with pictures, phone numbers, etc.

    I tried to convince them to move all the services to within WP but they insist that for security reasons they will stay with the traditional web pages and only use the WP install to handle news, etc.

    Sorry for the long explanation. How slow are we talking?

  4. Really slow. At 100 sites it'd crash you :/

    They're trying to use WP as a DB, and not for what it is. Also including WP files like that is just as 'risky' as using WP itself.

  5. jahue
    Member
    Posted 1 year ago #

    I have suggested several options but they keep insisting that this is how they want to integrate WP into their site. I am new-er to their team and I think their old developer introduced them to WP and they treat it as a standalone database with plugins.

    They are really only wanting to use the information generated from a plugin called connections to display on the employees page. So the data is not updating very option. I am not an expert at WP or loops. I have had some success integrating information from other pages but only on single WP installs.

    The way they use WP is the setup an individual blog (call it) employees. I created a blank template that just serves up the data generated by the connections plugin. That blog only does that. I don't know if that helps. I was assuming that If I could get the proper data I could use

    <?php
      // Include WordPress
      define('WP_USE_THEMES', false);
      require('/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php');
      query_posts('showposts=1');
    ?>

    etc.

    The problem is the line [query_posts('showposts=1');] I have never done this with pages or even know where to start with a WP-MS install.

  6. It'll be something like this:

    <?php
      // Include WordPress
      define('WP_USE_THEMES', false);
      require('/server/path/to/your/wordpress/site/htdocs/blog/wp-blog-header.php');
      switch_to_blog( 'BLOGID' );
      query_posts('showposts=1');
    ?>

    *sigh* I hate when people just don't understand how it works. (Them! Not you!)

Topic Closed

This topic has been closed to new replies.

About this Topic