WordPress.org

Ready to get started?Download WordPress

Forums

How to alter a theme for MU? (6 posts)

  1. DDT
    Member
    Posted 3 years ago #

    Hi there,

    I have installed a theme (sight) which uses a slideshow if a particular post widget ("use in slideshow") is checked.

    Now i like the theme to show the slideshow and menus for all registered users on their blog/subdomain. So the superadmin is in control of the slideshow.

    How can i alter/customize the theme any tips, suggestions?

  2. Well, each blog is independent, and the theme settings are independent to each blog.

    You have to alter those settings to a global table instead, and probably alter the theme part so it shows the slideshow only from the main blog.

  3. DDT
    Member
    Posted 3 years ago #

    tx andrea_r,

    Is there a function which returns the post of a certain blog_id???
    I want to try to change the slideshow from

    $args = array(
            'meta_key' => 'sgt_slide',
            'meta_value' => 'on',
            'numberposts' => -1,
            );
        $slides = get_posts($args);

    to something like

    $args = array(
            'meta_key' => 'sgt_slide',
            'meta_value' => 'on',
            'numberposts' => -1,
    'blog_id' => 1,//only main blog
            );
        $slides = get_posts($args);

    Any tips?

    edit
    ok i add this but now the featured image isn't displayed??

    switch_to_blog(1);
        $slides = get_posts($args);
    	restore_current_blog();
  4. DDT
    Member
    Posted 3 years ago #

    ok switch_to_blog() and restore_current_blog in header.php did the trick so far.

    But i can think of a view issues
    1/ the search form will only search blog_id 1, right??
    2/ making a custom menu i am happy with the general about, but when i add categories it only search the post from blog_id 1
    3 How to combine sitewide and blog specific posts, tags, categories etc.

  5. DDT
    Member
    Posted 3 years ago #

    How can i alter the base domain url for the menu??
    So i can have
    http://subdomain.domain.com/category/slug-1

    now it all points to
    http://domain.com/category/slug-1

  6. Well, you;re pulling it all from site 1.... so it shows the URL from site 1....

    Each site is *independent*.

Topic Closed

This topic has been closed to new replies.

About this Topic