Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter mindnumbing

    (@mindnumbing)

    Caching was disabled already. Switching to insecure mode didn’t fix it either.

    Since I’m kind of stuck on phpbb2 for this project I’ll just go without recent topics.

    Thanks for your help!

    Thread Starter mindnumbing

    (@mindnumbing)

    Yes, theme/index.php if you’re editing the front page.

    Thread Starter mindnumbing

    (@mindnumbing)

    Wango Tango.

    That’s just what I needed, thanks!

    Thread Starter mindnumbing

    (@mindnumbing)

    Thanks! I think that sent me on the right track, but I’m new to WP & php so still banging my way through.

    On the front page, I want to display the latest post in full, and older posts in excerpt.
    I can display the first post in full and can get a bulleted list of titles/links for older posts. When I try to display excerpts for older posts, things fall apart.

    Although the titles display correctly, the author and excerpt for what should be older posts all come from the latest post.

    Can you point me to some reference to help clear this up?

    Thanks!

    Here’s a simplified version of the code I’m using:

    <?php
    get_header();
    query_posts('posts_per_page=1'); //returns only the front page
    ?>
    
    <div id="content">
    
    <?php while ( have_posts() ) : the_post() ?>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>				
    
    deleted title/meta stuff
    
    <div class="entry-content">
    <?php the_content( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'your-theme' )  ); ?>
    <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
    </div>
    
    </div>
    
    <?php endwhile; ?>		
    
     <?php
     global $post;
     $myposts = get_posts('numberposts=5&offset=1');
     foreach($myposts as $post) :
     ?>
    
    <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>				
    
    deleted title/meta stuff
    
    <div class="entry-content">
    <?php the_excerpt( __( 'Continue reading <span class="meta-nav">&raquo;</span>', 'your-theme' )  ); ?>
    <?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'your-theme' ) . '&after=</div>') ?>
    </div>
    
    </div>
    
    <?php endforeach; ?>
    
    </div>

Viewing 4 replies - 1 through 4 (of 4 total)