Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Plugin: Static front page

    Well, not sure about this problem. Since installing static front page, “recent posts” listing doesn’t turn up in the sidebar on opening page. Not sure if this is the static plug-in or what.

    I’ve fiddled with the code, and can get the recent posts to turn up on the front page, but then my side bar vanishes from all other pages.

    Here’s the code as it now stands (minus the ad code):

    • <?php _e(‘Recent Posts’); ?>
      <?php
      $posts = get_posts(‘numberposts=5&offset=1’);
      foreach ($posts as $post) :
      ?>

    • “><?php the_title() ?>
    • <?php
      endforeach;
      ?>

    <?php } ?>
    <?php if ( !is_page (‘archives’) ){ ?>

    <li id=”pages”><?php _e(‘Pages’); ?>

      <?php if( is_home() ) : ?><?php wp_list_pages(‘title_li=&depth=1’); ?><?php else : ?><?php wp_list_pages(‘sort_column=menu_order&title_li=’); ?><?php endif; ?>

    <li id=”search”><?php _e(‘Search’); ?>
    <form id=”searchform” method=”get” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>”>
    <div>
    <input type=”text” name=”s” id=”s” size=”15″ /><input type=”submit” value=”<?php _e(‘this site’); ?>” />
    </div>
    </form>

    <li id=”categories”><?php _e(‘Categories’); ?>

      <?php if( is_home() ) : ?>

      <?php wp_list_cats(‘children=0’); ?><?php else : ?><?php wp_list_cats(); ?><?php endif; ?>

    Anyone can help?

    I tried adding
    <?php if ( !is_page (‘archives’)|| (is_home() ){ ?> but it didn’t work.

    If I put <?php if (is_home() ( !is_page (‘archives’) ){ ?> in the pages and categories coding then the ‘recent posts’ turn up on the static page, but side bar vanishes from all the other pages….

    Thanks
    Alison

Viewing 1 replies (of 1 total)