The MU forums have moved to WordPress.org

pages navigation (10 posts)

  1. robbot
    Member
    Posted 12 years ago #

    I want to have a navigation bar with the pages from the main blog. And I want that bar to stay on all blogs as sort of a top navigation. I have tried to find some sort of plugin or something here on the forums and on google but with no luck.
    Can anyone point me in the right direction or give me a hand with this, cuz I'm stuck.

    Thanks.

  2. andrea_r
    Moderator
    Posted 12 years ago #

    Adapt this plugin by putting in the links you want:

    http://wpmudevorg.wordpress.com/project/MU-Admin-Bar

  3. boonika
    Member
    Posted 12 years ago #

    Or You can use DrMike's Blog Defaults and add links you want to the links (blogrol) list.

    http://plugins.paidtoblog.com/wpmu-blog-defaults/

    Also You can use Power Tools plugin from the same author to add links for existing blogs.

  4. robbot
    Member
    Posted 12 years ago #

    But admin bar is only for people who are logged in right?

    And the blog-defaults uses blogroll.

    I want the Pages that I add at the main blog (those that usually are available in the pagebar). And I want them to be on all blogs so all can see them.

    Also I tried both plugins. Now I get a lot of characters at top but the different blogs don't load... It seems one of them inserted things that wasn't really that good for my wpmu installation.

  5. robbot
    Member
    Posted 12 years ago #

    After a whole reinstall and all my blogs gone I can now start again. Turns out it was some chars in ._mu-admin-bar.php that messed everything up.

    Can I use wp_page_menu() or wp_list_pages() to get my main blogs pages maybe?

  6. andrea_r
    Moderator
    Posted 12 years ago #

    The admin bar also has a section for non-logged in users. I'm using it right now (well, working on it) on a site so there's a persistent header across all blogs.

    Gettign it to pull in blog 1's pages is a bit trickier.

  7. dberndt
    Member
    Posted 12 years ago #

    Use static html for the navigational links? Just a thought.

  8. Klark0
    Member
    Posted 12 years ago #

    Can I use wp_page_menu() or wp_list_pages() to get my main blogs pages maybe?

    You can use some switch_to_blog/restore_blog magics like this:

    <?php
    switch_to_blog(1); ?>
    
    <?php wp_list_pages('title_li='); ?>
    
    <?php restore_current_blog();
    ?>

    1 is the blod_id of the main blog.

  9. robbot
    Member
    Posted 12 years ago #

    Klarko: Interesting indeed! Will look into that. Thanks.

  10. llamaman
    Member
    Posted 11 years ago #

    Klark0: Thank you! Your solution works great for me!

About this Topic