• Resolved Odenberg

    (@murmelin)


    Hi!

    Im building a website, mostly with static pages. But to make some sections extra easy to update; I have choosed to make these in blog form. The static pages all have a left sidebar-menu with the different pages listed with the Page-widget.

    The three blog-sections also has the left sidebar menu that lists the pages, and an extra right sidebar with content for the specific blog subject.

    My problem is that the Page-listings doesnt show in my 2nd and 3rd blog (the ones I have added with superadmin).

    Here is my webpage:
    http://www.bastardforlag.se/wordpress

    This is how I want it to look like:
    http://bastardforlag.se/wordpress/blogg/

    And this is what it looks like; an empty left sidebar:
    http://bastardforlag.se/wordpress/handla/

    It there a simple way to solve this problem, or do I have to create LL new Pages in blog 2 and 3?

    Can someone please help me?

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter Odenberg

    (@murmelin)

    ipstenu:
    Sorry, Im swedish and wrighting in english isnt very easy for me. im looking for a solution for my specific problem (described in my initial post)with my secondary blogg; how to get the pages from my base blgg in to the meny of my second blog.

    Andrea:
    Where in my theme is it supposted to be placed?

    In the area of your theme that has the menu. becasue that’s what you want to replace. usually this is in header.php.

    Thread Starter Odenberg

    (@murmelin)

    Thanks so much for your answer.

    I must do something wrong. I took the code and placed it in my sidebar.php. Like this:

    – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
    <div id=”meny”>

      <?php wp_list_pages(‘title_li=<h2>Pages</h2>’); ?>
      <?php switch_to_blog(1); ?>
      //do stuff
      <?php restore_current_blog(); ?>
      <?php if ( function_exists(‘dynamic_sidebar’) && dynamic_sidebar() ) : else : ?>

      <?php endif; ?>

    </div>
    – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

    But the only thing that happens is that I get a white gap with black text //get stuff in the sidebar meny. Have I placed it wrong?

    http://bastardforlag.se/wordpress/handla9/

    <div id="meny">
    
          <?php switch_to_blog(1); ?>
    
          <?php wp_list_pages('title_li=<h2>Pages</h2>'); ?>
    
          <?php restore_current_blog(); ?> 
    
          <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
    
          <?php endif; ?> 
    
    </div>

    The “do stuff” part was where you were supposed to substitute whatever you wanted to show.

    Thread Starter Odenberg

    (@murmelin)

    THANK YOU!!! THANK YOU!!! THANK YOU!!!

    It works perpectly and I have a big smile on my face!

    Thanks again!

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘Problems with widgets when using Multisites’ is closed to new replies.