Support » Networking WordPress » Restrictions when using multisite

  • I’m just wondering why are there some negative restrictions when using multisite?!

    I mention two which confuses me:
    – I can’t use external pages when multisite is enabled. So I can’t fetch my latest blog posts and display it on my main site as it worked before with this method.

    – My editors can’t embed videos to posts when multisite is enabled. I can’t set oembed either (no oembed option in settings -> media). Temporarily I’m using Unfiltered MU plugin but I’d like a better solution.

    I’m using WordPress 3.0.1 at the moment.

    Any ideas?

Viewing 10 replies - 1 through 10 (of 10 total)
  • My editors can’t embed videos to posts when multisite is enabled.

    Tell them to use the oembeds instead 🙂 They can just paste in the youtube URL and it’ll load! Done! 🙂 — http://codex.wordpress.org/Embeds

    I can’t use external pages when multisite is enabled.

    That should still work… Read this:

    Embed WordPress Functions Outside WordPress

    Thanks for your reply!
    As I wrote in my first post oembed doesn’t work. The option in settings -> media is not there.

    I’ll try the solution about external pages soon but I think I already tried that way, too…
    Basically I’ll try the code below (source: http://codex.wordpress.org/Integrating_WordPress_with_Your_Website ) but instead of including wp-blog-header.php I’ll try it with wp-load.php. Let’s see how it works.

    <?php
    require(‘/the/path/to/your/wp-blog-header.php’);
    ?>
    <?php
    $posts = get_posts(‘numberposts=10&order=ASC&orderby=post_title’);
    foreach ($posts as $post) : start_wp(); ?>
    <?php the_date(); echo “
    “; ?>
    <?php the_title(); ?>
    <?php the_excerpt(); ?>
    <?php
    endforeach;
    ?>

    oembed is built in. You don’t need to activate it. Just paste http://youtube.com/watch?=kljasfskljdf or whatever the URL is. Should work for everyone, provided the embed is there. Works fine for me.

    There’s a plugin to enable oEmbed discovery which will let it work with sites that aren’t known already by WordPress: http://wordpress.org/extend/plugins/enable-oembed-discovery/

    multisites?

    I can’t change theme for each site after I install multisites.

    How to solve?

    See website: http://www.wtt123.com/News
    and

    http://www.wtt123.com/money

    tom26 – Make a new topic. It’s rude to try and take over other people’s topics, esp when your problem is nothing like this one.

    Yeah, my editors saying that oembed is working fine. (it didn’t work for me in preview mode)

    The other thing about the external page didn’t work, that link didn’t help. However after a longlong time I figured out how to make it work when multisite is enabled in WordPress 3.

    define('WP_USE_THEMES', false);
    define('WP_INSTALLING', true);
    require('./blog/wp-load.php');

    The 2nd line is really important, it doesn’t work without that. Now my question is how to tell get_posts() function that which blog’s posts should it read. So if I have multiple blog but I just want to get posts from one of them, how do I do it?

    pull it via rss?

    That’s what I did so far… But that’s what I don’t want to do anymore.

    Any idea how to tell get_posts() (or another) function that which blog’s posts should it read?

    switch_to_blog() before those calls can do it, though FYI, it can get fairly processor intense if you do it a lot.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Restrictions when using multisite’ is closed to new replies.