WordPress.org

Ready to get started?Download WordPress

Forums

Restrictions when using multisite (11 posts)

  1. pappfer
    Member
    Posted 3 years ago #

    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?

  2. 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:

    http://wpengineer.com/1038/embed-wordpress-functions-outside-wordpress/

  3. pappfer
    Member
    Posted 3 years ago #

    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;
    ?>

  4. 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/

  5. tom26
    Member
    Posted 3 years ago #

    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

  6. 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.

  7. pappfer
    Member
    Posted 3 years ago #

    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?

  8. pull it via rss?

  9. pappfer
    Member
    Posted 3 years ago #

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

  10. pappfer
    Member
    Posted 3 years ago #

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

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags