The MU forums have moved to WordPress.org

Display only my pages on Main blog (3 posts)

  1. sagive
    Member
    Posted 13 years ago #

    Hey, For some reason - maybe its the default mode
    i see in the pages menu everyone's blog pages.

    i know how to display specific pages using:
    <?php wp_list_pages('title_li=&include=0,1,2,3,30,105,97,52'); ?>

    But my template uses some weird code to maintain its apearnce:

    <li<?php if ( is_front_page() ) echo ' class="current_page_item"'; ?>><a href="<?php echo get_option('home'); ?>/"><span>דף הבית</span></a></li>
    <?php $pages = wp_list_pages('sort_column=menu_order&title_li=&echo=0');
    $pages = preg_replace('%<a ([^>]+)>%U','<a $1><span>', $pages);
    $pages = str_replace('</a>','</span></a>', $pages);
    echo $pages; ?>

    So what ever i do influences the appearance badly..
    Anyway to set "show just main Blog pages" ???

    would appreciate any help plz

  2. sagive
    Member
    Posted 13 years ago #

    anyone? any idea?

  3. andrea_r
    Moderator
    Posted 13 years ago #

    Fix your theme. If it was using default functions properly it will show only your blog's pages on your blog.

    If someone else is using the same theme on their blog, it shoudl show their pages. that's pretty much default behaviour.

About this Topic