[the_content] Post not displaying full content
-
Hello.
I’m trying to get my posts to display the full content when “Continue reading” is clicked, but I cannot get it to work.
This is what I have in single.php :
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h1 class="entry-title"><?php the_title(); ?></h1> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div> <div class="entry-content"> <?php the_content(); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link"> '. __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div> [...] </div>…and this is loop.php :
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a> </h2> <div class="entry-meta"> <?php twentyten_posted_on(); ?> </div> <?php if ( is_archive() || is_search() ) : ?> <div class="entry-summary"> <?php the_excerpt(); ?> </div> <?php else : ?> <div class="entry-content"> <?php the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'twentyten' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'twentyten' ), 'after' => '</div>' ) ); ?> </div> [...] </div>Here is the page in question.
Any suggestions would be greatly appreciated.
Bob
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘[the_content] Post not displaying full content’ is closed to new replies.